Moving things around a bit/commenting in the submit view to make the workflow clearer

This commit is contained in:
Christopher Allan Webber 2011-08-11 11:30:26 -05:00
parent 1b57c29082
commit 07934b442f

View File

@ -87,9 +87,13 @@ def submit_start(request):
# Add queued filename to the entry
entry['queued_media_file'] = queue_filepath
# queue it for processing
# Save now so we have this data before kicking off processing
entry.save(validate=False)
result = process_media_initial.delay(unicode(entry['_id']))
entry['queued_task_id'] = result.task_id
# Save the task id
entry['queued_task_id'] = unicode(result.task_id)
entry.save(validate=True)
add_message(request, SUCCESS, _('Woohoo! Submitted!'))