Skip to content

Commit 94f1a9f

Browse files
committed
Merge pull request justinmayer#2 from Dubrzr/master
Add allow_unicode attribute for django 1.9 compatibility.
2 parents d12a571 + fb41643 commit 94f1a9f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

autoslug/fields.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,10 @@ def __init__(self, *args, **kwargs):
200200
if 'db_index' not in kwargs:
201201
kwargs['db_index'] = True
202202

203+
# A boolean instructing the field to accept Unicode letters in
204+
# addition to ASCII letters. Defaults to False.
205+
self.allow_unicode = kwargs.pop('allow_unicode', False)
206+
203207
# When using model inheritence, set manager to search for matching
204208
# slug values
205209
self.manager = kwargs.pop('manager', None)

0 commit comments

Comments
 (0)