From 07934b442f7cd3abae18eecdf533de004f88e6b1 Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Thu, 11 Aug 2011 11:30:26 -0500 Subject: [PATCH] Moving things around a bit/commenting in the submit view to make the workflow clearer --- mediagoblin/submit/views.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mediagoblin/submit/views.py b/mediagoblin/submit/views.py index d4858c87..1e8c6a68 100644 --- a/mediagoblin/submit/views.py +++ b/mediagoblin/submit/views.py @@ -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!')) -- 2.25.1