Update uuslug.py

Updated the call to pyslugify to use keyword- instead of positional arguments.
This commit is contained in:
Benedikt Willi 2022-06-17 10:21:47 +02:00 committed by GitHub
parent 73c2c2c34f
commit fd439bb574
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,8 +11,9 @@ def slugify(text, entities=True, decimal=True, hexadecimal=True, max_length=0,
Make a slug from a given text.
"""
return smart_str(pyslugify(text, entities, decimal, hexadecimal, max_length,
word_boundary, separator, save_order, stopwords))
return smart_str(pyslugify(text, entities=entities, decimal=decimal, hexadecimal=hexadecimal,
max_length=max_length, word_boundary=word_boundary,
separator=separator, save_order=save_order, stopwords=stopwords))
def uuslug(s, instance, entities=True, decimal=True, hexadecimal=True,