Allow unicode chars as the only chars in a list title

This commit is contained in:
Scot Hacker 2019-09-19 22:58:52 -07:00
parent 2b722afb8a
commit ce3fd8c66e
3 changed files with 4 additions and 2 deletions

View file

@ -25,7 +25,7 @@ def add_list(request) -> HttpResponse:
if form.is_valid():
try:
newlist = form.save(commit=False)
newlist.slug = slugify(newlist.name)
newlist.slug = slugify(newlist.name, allow_unicode=True)
newlist.save()
messages.success(request, "A new list has been added.")
return redirect("todo:lists")