Skip to content

Commit d4cdb21

Browse files
committed
Fixes #3786
Minor fix for dictionary key lookup in settings file
1 parent dceb686 commit d4cdb21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rest_framework/settings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def user_settings(self):
196196
return self._user_settings
197197

198198
def __getattr__(self, attr):
199-
if attr not in self.defaults.keys():
199+
if attr not in self.defaults:
200200
raise AttributeError("Invalid API setting: '%s'" % attr)
201201

202202
try:

0 commit comments

Comments
 (0)