From d4cdb21de9da55a4c8b33d71494f26fee4fc2e89 Mon Sep 17 00:00:00 2001 From: Mads Jensen Date: Wed, 6 Jan 2016 22:51:11 +0100 Subject: [PATCH] Fixes #3786 Minor fix for dictionary key lookup in settings file --- rest_framework/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: 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