Commits

Peter Sanchez  committed 9e5a409

Changed if statement in slufigy_uniquely method

  • Participants
  • Parent commits f3d8099
  • Branches trunk

Comments (0)

Files changed (1)

File 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