mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-05 13:00:12 +03:00
Merge 805283fe38
into 83c535e9cc
This commit is contained in:
commit
9290c83c0f
|
@ -577,6 +577,8 @@ class Field(object):
|
||||||
"""
|
"""
|
||||||
A helper method that simply raises a validation error.
|
A helper method that simply raises a validation error.
|
||||||
"""
|
"""
|
||||||
|
if 'GLOBAL_ERROR_MESSAGES' in api_settings.user_settings.keys():
|
||||||
|
self.error_messages.update(api_settings.user_settings['GLOBAL_ERROR_MESSAGES'])
|
||||||
try:
|
try:
|
||||||
msg = self.error_messages[key]
|
msg = self.error_messages[key]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user