File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change 135
135
)
136
136
137
137
138
+ SETTINGS_DOC = "http://www.django-rest-framework.org/api-guide/settings/"
139
+
140
+
141
+ # List of settings that have been depreceated
142
+ DEPRECEATED_SETTINGS = ()
143
+
144
+
145
+ # List of settings that have been removed
146
+ REMOVED_SETTINGS = (
147
+ "PAGINATE_BY" , "PAGINATE_BY_PARAM" , "MAX_PAGINATE_BY" ,
148
+ )
149
+
150
+
138
151
def perform_import (val , setting_name ):
139
152
"""
140
153
If the given setting is a string import notation,
@@ -207,10 +220,7 @@ def __getattr__(self, attr):
207
220
return val
208
221
209
222
def __check_user_settings (self , user_settings ):
210
- DEPRECEATED_SETTINGS = (
211
- "PAGINATE_BY" , "PAGINATE_BY_PARAM" , "MAX_PAGINATE_BY" ,)
212
- SETTINGS_DOC = "http://www.django-rest-framework.org/api-guide/settings/"
213
- for setting in DEPRECEATED_SETTINGS :
223
+ for setting in REMOVED_SETTINGS :
214
224
if setting in user_settings :
215
225
raise AttributeError ("The '%s' setting has been removed. Please refer to '%s' for available settings." % (setting , SETTINGS_DOC ))
216
226
return user_settings
You can’t perform that action at this time.
0 commit comments