diff options
author | Rodney Ewing <ewing.rj@gmail.com> | 2013-08-08 15:49:33 -0700 |
---|---|---|
committer | Rodney Ewing <ewing.rj@gmail.com> | 2013-08-08 15:49:33 -0700 |
commit | b26edfb944a02bbb3b1a326c536c10fce6e7bb03 (patch) | |
tree | 190893e5f81a319b313727e6fb0baadf6b8d39c6 /mediagoblin/plugins/api/views.py | |
parent | 4de7db6fefa17c5c87b07c7aeccb098b9ec403b2 (diff) | |
download | mediagoblin-b26edfb944a02bbb3b1a326c536c10fce6e7bb03.tar.lz mediagoblin-b26edfb944a02bbb3b1a326c536c10fce6e7bb03.tar.xz mediagoblin-b26edfb944a02bbb3b1a326c536c10fce6e7bb03.zip |
Revert "Leave slug empty until we are sure media processing was successful."
This reverts commit f67611fb485b5a84cedc62b73beb1e551e8cb934.
For some reason, generating a slug here throws an integrity error during
a query when there is a duplicate slug.
Diffstat (limited to 'mediagoblin/plugins/api/views.py')
-rw-r--r-- | mediagoblin/plugins/api/views.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mediagoblin/plugins/api/views.py b/mediagoblin/plugins/api/views.py index 0e8735bc..9159fe65 100644 --- a/mediagoblin/plugins/api/views.py +++ b/mediagoblin/plugins/api/views.py @@ -61,6 +61,8 @@ def post_entry(request): entry.description = unicode(request.form.get('description')) entry.license = unicode(request.form.get('license', '')) + entry.generate_slug() + # queue appropriately queue_file = prepare_queue_task(request.app, entry, media_file.filename) |