Skip to content

Commit fb41643

Browse files
committed
Add allow_unicode attribute for django 1.9 compatibility.
1 parent adccfe0 commit fb41643

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)