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/db/util.py | |
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/db/util.py')
-rw-r--r-- | mediagoblin/db/util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/db/util.py b/mediagoblin/db/util.py index 529ef8b9..6ffec44d 100644 --- a/mediagoblin/db/util.py +++ b/mediagoblin/db/util.py @@ -59,7 +59,7 @@ def clean_orphan_tags(commit=True): Session.commit() -def check_collection_slug_used(dummy_db, creator_id, slug, ignore_c_id): +def check_collection_slug_used(creator_id, slug, ignore_c_id): filt = (Collection.creator == creator_id) \ & (Collection.slug == slug) if ignore_c_id is not None: |