@register.filter(is_safe=True)
@stringfilter
def slugify(value):
 return _slugify(value)

@ register . filter ( is_safe = True ) @ stringfilter def slugify ( value ) : return _slugify ( value )
converts to lowercase .