aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/utils
diff options
context:
space:
mode:
authorAymeric Augustin2013-11-10 15:40:09 +0100
committerAymeric Augustin2013-11-10 15:40:09 +0100
commit8c7a8ec6529063853c9ff36da72a38841ca5e235 (patch)
tree7f4a8355daa9897921e9d88e377148b6e534c049 /debug_toolbar/utils
parent6ba33adc23afc990243c5aef21a2381670c33da1 (diff)
downloaddjango-debug-toolbar-8c7a8ec6529063853c9ff36da72a38841ca5e235.tar.bz2
Fix confusion between __getattr__ and __getattribute__.
Diffstat (limited to 'debug_toolbar/utils')
-rw-r--r--debug_toolbar/utils/tracking/db.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/debug_toolbar/utils/tracking/db.py b/debug_toolbar/utils/tracking/db.py
index a00435d..157334a 100644
--- a/debug_toolbar/utils/tracking/db.py
+++ b/debug_toolbar/utils/tracking/db.py
@@ -162,10 +162,7 @@ class NormalCursorWrapper(object):
return self.cursor.executemany(sql, param_list)
def __getattr__(self, attr):
- if attr in self.__dict__:
- return self.__dict__[attr]
- else:
- return getattr(self.cursor, attr)
+ return getattr(self.cursor, attr)
def __iter__(self):
return iter(self.cursor)