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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user