mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed #18989 -- Removed unused condition in CursorWrapper
Thanks zimnyx for the report.
This commit is contained in:
parent
7a38e86bde
commit
8c69278764
1 changed files with 3 additions and 5 deletions
|
@ -24,11 +24,9 @@ class CursorWrapper(object):
|
|||
self.db.set_dirty()
|
||||
|
||||
def __getattr__(self, attr):
|
||||
self.set_dirty()
|
||||
if attr in self.__dict__:
|
||||
return self.__dict__[attr]
|
||||
else:
|
||||
return getattr(self.cursor, attr)
|
||||
if attr in ('execute', 'executemany', 'callproc'):
|
||||
self.set_dirty()
|
||||
return getattr(self.cursor, attr)
|
||||
|
||||
def __iter__(self):
|
||||
return iter(self.cursor)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue