(value)
return value
Normalizes string, converts to lowercase, removes non-alpha characters,
    and converts spaces to hyphens.
Normalizes string, converts to lowercase, removes non-alpha characters,
    and converts spaces to hyphens.
Normalizes string converts to lowercase removes non - alpha characters and converts spaces to hyphens .
def slugify(value):
    """
    Normalizes string, converts to lowercase, removes non-alpha characters,
    and converts spaces to hyphens.
    """
    value = str(value)
    value = re.sub('[^\w\s-]', '', value).strip().lower()
    value = re.sub('[-\s]+', '-', value)
    return value
def slugify ( value ) : value = str ( value ) value = re . sub ( '[^\w\s-]' , '' , value ) . strip ( ) . lower ( ) value = re . sub ( '[-\s]+' , '-' , value ) return value