Code

Changes between Version 7 and Version 8 of SlugifyUniquely


Ignore:
Timestamp:
02/28/12 03:16:55 (2 years ago)
Author:
anonymous
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SlugifyUniquely

    v7 v8  
    3232                        potential = "-".join([base, str(suffix)]) 
    3333                 
    34                 # doesn't this return 0, not false? 
    3534                if not model.objects.filter(**{slugfield: potential}).count(): 
    3635                        return potential