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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy