Commit fbd89d6b by Luis San Pablo

Moved SETTINGS_DOC

parent a615e372
......@@ -135,9 +135,6 @@ IMPORT_STRINGS = (
)
SETTINGS_DOC = "http://www.django-rest-framework.org/api-guide/settings/"
# List of settings that have been removed
REMOVED_SETTINGS = (
"PAGINATE_BY", "PAGINATE_BY_PARAM", "MAX_PAGINATE_BY",
......@@ -216,6 +213,7 @@ class APISettings(object):
return val
def __check_user_settings(self, user_settings):
SETTINGS_DOC = "http://www.django-rest-framework.org/api-guide/settings/"
for setting in REMOVED_SETTINGS:
if setting in user_settings:
raise AttributeError("The '%s' setting has been removed. Please refer to '%s' for available settings." % (setting, SETTINGS_DOC))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment