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