Source

webutils / webutils / djtools / helpers.py

The branch 'trunk' does not exist.
Diff from to

webutils/djtools/helpers.py

     default slugs already in the database.
     '''
     new_slug = new_slug_base = slugify(s)
-    if queryset:
+    if queryset is not None:
         queryset = queryset.filter(**{'%s__startswith' % field: new_slug_base})
         similar_slugs = [value[0] for value in queryset.values_list(field)]
         i = 1