Changes between Version 7 and Version 8 of SlugifyUniquely
- Timestamp:
- Feb 28, 2012, 5:16:55 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SlugifyUniquely
v7 v8 32 32 potential = "-".join([base, str(suffix)]) 33 33 34 # doesn't this return 0, not false?35 34 if not model.objects.filter(**{slugfield: potential}).count(): 36 35 return potential