#NEWLINE# def get_slug( self , slug ) : #NEWLINE# #INDENT# '\n        Returns a unique slug.\n        \n        ' #NEWLINE# get = ( lambda : self . filter ( slug = slug ) ) #NEWLINE# slug = s = slugify ( slug ) #NEWLINE# counter = 1 #NEWLINE# while get ( ) : #NEWLINE# #INDENT# slug = ( '%s-%s' % ( s , counter ) ) #NEWLINE# counter += 1 #NEWLINE# #UNINDENT# return slug