1
0
mirror of https://github.com/django/django.git synced 2025-10-23 21:59:11 +00:00

Fixed #30892 -- Fixed slugify() and admin's URLify.js for "İ".

Thanks Luis Nell for the implementation idea and very detailed report.

Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>
This commit is contained in:
Sjbrgsn
2019-12-21 11:45:54 +01:00
committed by Mariusz Felisiak
parent cf5d4701dc
commit b2bd08bb7a
6 changed files with 14 additions and 10 deletions

View File

@@ -196,6 +196,7 @@ class TestUtilsText(SimpleTestCase):
('foo ıç bar', 'foo-ıç-bar', True),
(' foo ıç bar', 'foo-ıç-bar', True),
('你好', '你好', True),
('İstanbul', 'istanbul', True),
)
for value, output, is_unicode in items:
self.assertEqual(text.slugify(value, allow_unicode=is_unicode), output)