diff --git a/django/db/backends/__init__.py b/django/db/backends/__init__.py
index 8acfde0..3ff43bc 100644
a
|
b
|
class BaseDatabaseWrapper(object):
|
45 | 45 | self.alias = alias |
46 | 46 | # Query logging in debug mode or when explicitly enabled. |
47 | 47 | self.queries_log = deque(maxlen=self.queries_limit) |
48 | | self.use_debug_cursor = False |
| 48 | self.use_debug_cursor = None |
49 | 49 | |
50 | 50 | # Transaction related attributes. |
51 | 51 | # Tracks if the connection is in autocommit mode. Per PEP 249, by |
… |
… |
class BaseDatabaseWrapper(object):
|
75 | 75 | |
76 | 76 | @property |
77 | 77 | def queries_logged(self): |
78 | | return self.use_debug_cursor or settings.DEBUG |
| 78 | return (self.use_debug_cursor or |
| 79 | (self.use_debug_cursor is None and settings.DEBUG)) |
79 | 80 | |
80 | 81 | @property |
81 | 82 | def queries(self): |