Changes between Version 6 and Version 7 of SlugifyUniquely


Ignore:
Timestamp:
Feb 28, 2012, 5:08:33 AM (13 years ago)
Author:
anonymous
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SlugifyUniquely

    v6 v7  
    3131                if suffix:
    3232                        potential = "-".join([base, str(suffix)])
     33               
     34                # doesn't this return 0, not false?
    3335                if not model.objects.filter(**{slugfield: potential}).count():
    3436                        return potential
Back to Top