mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-10 19:56:59 +03:00
Return error
This commit is contained in:
parent
d86a901aff
commit
13c66b9dfe
|
@ -213,6 +213,7 @@ class APISettings(object):
|
|||
for setting in DEPRECEATED_SETTINGS:
|
||||
if setting in user_settings:
|
||||
raise AttributeError("The '%s' setting has been removed. Please refer to '%s' for available settings." % setting, SETTINGS_DOC)
|
||||
return user_settings
|
||||
|
||||
|
||||
api_settings = APISettings(None, DEFAULTS, IMPORT_STRINGS)
|
||||
|
|
Loading…
Reference in New Issue
Block a user