aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/processing/task.py
diff options
context:
space:
mode:
authorRodney Ewing <ewing.rj@gmail.com>2013-08-07 16:15:27 -0700
committerRodney Ewing <ewing.rj@gmail.com>2013-08-07 16:15:27 -0700
commitf67611fb485b5a84cedc62b73beb1e551e8cb934 (patch)
tree27726647d2e1c1c3ab7d41784fd8ca73c10e7f37 /mediagoblin/processing/task.py
parent155d234d95a6bdbbdc546d9919b692a95e7a5c9b (diff)
downloadmediagoblin-f67611fb485b5a84cedc62b73beb1e551e8cb934.tar.lz
mediagoblin-f67611fb485b5a84cedc62b73beb1e551e8cb934.tar.xz
mediagoblin-f67611fb485b5a84cedc62b73beb1e551e8cb934.zip
Leave slug empty until we are sure media processing was successful.
Patch submitted by LotusEcho
Diffstat (limited to 'mediagoblin/processing/task.py')
-rw-r--r--mediagoblin/processing/task.py2
1 files changed, 2 insertions, 0 deletions
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