mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-04-25 11:33:43 +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:
|
for setting in DEPRECEATED_SETTINGS:
|
||||||
if setting in user_settings:
|
if setting in user_settings:
|
||||||
raise AttributeError("The '%s' setting has been removed. Please refer to '%s' for available settings." % setting, SETTINGS_DOC)
|
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)
|
api_settings = APISettings(None, DEFAULTS, IMPORT_STRINGS)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user