diff --git a/rest_framework/settings.py b/rest_framework/settings.py index 9679cad592..946b905c6b 100644 --- a/rest_framework/settings.py +++ b/rest_framework/settings.py @@ -196,7 +196,7 @@ def user_settings(self): return self._user_settings def __getattr__(self, attr): - if attr not in self.defaults.keys(): + if attr not in self.defaults: raise AttributeError("Invalid API setting: '%s'" % attr) try:
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: