diff options
author | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2013-01-25 22:41:28 +0100 |
---|---|---|
committer | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2013-04-06 16:53:04 +0200 |
commit | 455fd36ff66746aecd66095080ae00a547337a8c (patch) | |
tree | 7d369655e98dff752407703b82af756edc138344 /mediagoblin/edit | |
parent | 29c65044bf1af13161e52801a1589ec0f3d93fd9 (diff) | |
download | mediagoblin-455fd36ff66746aecd66095080ae00a547337a8c.tar.lz mediagoblin-455fd36ff66746aecd66095080ae00a547337a8c.tar.xz mediagoblin-455fd36ff66746aecd66095080ae00a547337a8c.zip |
Use GenerateSlugMixin for collections.
Use the new way of generating slugs also for collections.
Also drop the dummy_db arg to check_collection_slug_used.
Diffstat (limited to 'mediagoblin/edit')
-rw-r--r-- | mediagoblin/edit/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/edit/views.py b/mediagoblin/edit/views.py index 0b1cda98..34b7aaca 100644 --- a/mediagoblin/edit/views.py +++ b/mediagoblin/edit/views.py @@ -308,7 +308,7 @@ def edit_collection(request, collection): if request.method == 'POST' and form.validate(): # Make sure there isn't already a Collection with such a slug # and userid. - slug_used = check_collection_slug_used(request.db, collection.creator, + slug_used = check_collection_slug_used(collection.creator, form.slug.data, collection.id) # Make sure there isn't already a Collection with this title |