Skip to content

Commit

Permalink
Moved SETTINGS_DOC
Browse files Browse the repository at this point in the history
  • Loading branch information
lsanpablo committed Dec 12, 2015
1 parent a615e37 commit fbd89d6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions rest_framework/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,6 @@
)


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",
Expand Down Expand Up @@ -216,6 +213,7 @@ def __getattr__(self, attr):
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))
Expand Down

0 comments on commit fbd89d6

Please sign in to comment.