Allow unicode chars as the only chars in a list title
This commit is contained in:
parent
2b722afb8a
commit
ce3fd8c66e
3 changed files with 4 additions and 2 deletions
|
@ -300,6 +300,8 @@ django-todo uses pytest exclusively for testing. The best way to run the suite i
|
||||||
|
|
||||||
## Version History
|
## Version History
|
||||||
|
|
||||||
|
**2.4.10** It is now possible to use unicode characters (such as Chinese) as the only chars in a list title.
|
||||||
|
|
||||||
**2.4.9** Fixed: Editing a task should not change its completed/incomplete status
|
**2.4.9** Fixed: Editing a task should not change its completed/incomplete status
|
||||||
|
|
||||||
**2.4.8** Fix bug when setting default values for unspecified settings
|
**2.4.8** Fix bug when setting default values for unspecified settings
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
"""
|
"""
|
||||||
A multi-user, multi-group task management and assignment system for Django.
|
A multi-user, multi-group task management and assignment system for Django.
|
||||||
"""
|
"""
|
||||||
__version__ = "2.4.9"
|
__version__ = "2.4.10"
|
||||||
|
|
||||||
__author__ = "Scot Hacker"
|
__author__ = "Scot Hacker"
|
||||||
__email__ = "shacker@birdhouse.org"
|
__email__ = "shacker@birdhouse.org"
|
||||||
|
|
|
@ -25,7 +25,7 @@ def add_list(request) -> HttpResponse:
|
||||||
if form.is_valid():
|
if form.is_valid():
|
||||||
try:
|
try:
|
||||||
newlist = form.save(commit=False)
|
newlist = form.save(commit=False)
|
||||||
newlist.slug = slugify(newlist.name)
|
newlist.slug = slugify(newlist.name, allow_unicode=True)
|
||||||
newlist.save()
|
newlist.save()
|
||||||
messages.success(request, "A new list has been added.")
|
messages.success(request, "A new list has been added.")
|
||||||
return redirect("todo:lists")
|
return redirect("todo:lists")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue