From f67611fb485b5a84cedc62b73beb1e551e8cb934 Mon Sep 17 00:00:00 2001 From: Rodney Ewing Date: Wed, 7 Aug 2013 16:15:27 -0700 Subject: Leave slug empty until we are sure media processing was successful. Patch submitted by LotusEcho --- mediagoblin/processing/task.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mediagoblin/processing/task.py') diff --git a/mediagoblin/processing/task.py b/mediagoblin/processing/task.py index 9af192ed..ba2323b2 100644 --- a/mediagoblin/processing/task.py +++ b/mediagoblin/processing/task.py @@ -94,6 +94,8 @@ class ProcessMedia(task.Task): # We set the state to processed and save the entry here so there's # no need to save at the end of the processing stage, probably ;) entry.state = u'processed' + #Generate the slug here rather than earlier when it could have failed. + entry.generate_slug() entry.save() # Notify the PuSH servers as async task -- cgit v1.2.3