Skip to content

Commit fbd89d6

Browse files
committed
Moved SETTINGS_DOC
1 parent a615e37 commit fbd89d6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

rest_framework/settings.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,6 @@
135135
)
136136

137137

138-
SETTINGS_DOC = "http://www.django-rest-framework.org/api-guide/settings/"
139-
140-
141138
# List of settings that have been removed
142139
REMOVED_SETTINGS = (
143140
"PAGINATE_BY", "PAGINATE_BY_PARAM", "MAX_PAGINATE_BY",
@@ -216,6 +213,7 @@ def __getattr__(self, attr):
216213
return val
217214

218215
def __check_user_settings(self, user_settings):
216+
SETTINGS_DOC = "http://www.django-rest-framework.org/api-guide/settings/"
219217
for setting in REMOVED_SETTINGS:
220218
if setting in user_settings:
221219
raise AttributeError("The '%s' setting has been removed. Please refer to '%s' for available settings." % (setting, SETTINGS_DOC))

0 commit comments

Comments
 (0)