From: Christopher Allan Webber Date: Thu, 11 Aug 2011 01:26:22 +0000 (-0500) Subject: We should save the entry *after* we add the queued_task_id. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d990a3799846a06ada11805ca4f2806eb1bf8b5e;p=mediagoblin.git We should save the entry *after* we add the queued_task_id. --- diff --git a/mediagoblin/submit/views.py b/mediagoblin/submit/views.py index 59d8fe3f..53711236 100644 --- a/mediagoblin/submit/views.py +++ b/mediagoblin/submit/views.py @@ -88,11 +88,11 @@ def submit_start(request): # Add queued filename to the entry entry['queued_media_file'] = queue_filepath - entry.save(validate=True) # queue it for processing result = process_media_initial.delay(unicode(entry['_id'])) entry['queued_task_id'] = result.task_id + entry.save(validate=True) add_message(request, SUCCESS, _('Woohoo! Submitted!'))