mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 09:36:49 +03:00
parent
dceb686700
commit
d4cdb21de9
|
@ -196,7 +196,7 @@ class APISettings(object):
|
|||
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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user