Skip to content

Commit 057cf13

Browse files
committed
Merge pull request #3815 from atombrella/keys_dict_3786
Fixes #3786
2 parents 69fb34b + d4cdb21 commit 057cf13

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)