mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-30 01:49:50 +03:00
[Bugfix] SlugField add allow_unicode to kwargs
This commit is contained in:
parent
1d5771d980
commit
cc6de0a5eb
|
@ -173,6 +173,7 @@ def get_field_kwargs(field_name, model_field):
|
||||||
validator for validator in validator_kwarg
|
validator for validator in validator_kwarg
|
||||||
if validator is not validators.validate_slug
|
if validator is not validators.validate_slug
|
||||||
]
|
]
|
||||||
|
kwargs['allow_unicode'] = model_field.allow_unicode
|
||||||
|
|
||||||
# IPAddressField do not need to include the 'validate_ipv46_address' argument,
|
# IPAddressField do not need to include the 'validate_ipv46_address' argument,
|
||||||
if isinstance(model_field, models.GenericIPAddressField):
|
if isinstance(model_field, models.GenericIPAddressField):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user