aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/edit
diff options
context:
space:
mode:
authorElrond <elrond+mediagoblin.org@samba-tng.org>2013-01-25 22:41:28 +0100
committerElrond <elrond+mediagoblin.org@samba-tng.org>2013-04-06 16:53:04 +0200
commit455fd36ff66746aecd66095080ae00a547337a8c (patch)
tree7d369655e98dff752407703b82af756edc138344 /mediagoblin/edit
parent29c65044bf1af13161e52801a1589ec0f3d93fd9 (diff)
downloadmediagoblin-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.py2
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