Changes between Version 6 and Version 7 of SlugifyUniquely


Ignore:
Timestamp:
02/28/12 05:08:33 (3 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