mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-08 06:14:47 +03:00
Changed MappingField default error messages
This commit is contained in:
parent
643893334b
commit
34232b0199
|
@ -1169,8 +1169,8 @@ class MultipleChoiceField(ChoiceField):
|
||||||
|
|
||||||
class MappingField(Field):
|
class MappingField(Field):
|
||||||
default_error_messages = {
|
default_error_messages = {
|
||||||
'key_not_found': _('"{value}" not found in "mapping" dict'),
|
'key_not_found': _('"{value}" not found in "mapping" keys'),
|
||||||
'value_not_found': _('"{value}" not found in "mapping" dict')
|
'value_not_found': _('"{value}" not found in "mapping" values')
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, mapping, **kwargs):
|
def __init__(self, mapping, **kwargs):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user