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.
This commit is contained in:
Elrond
2013-01-25 22:41:28 +01:00
parent 29c65044bf
commit 455fd36ff6
3 changed files with 5 additions and 14 deletions

View File

@@ -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