summaryrefslogtreecommitdiff
path: root/django/db
diff options
context:
space:
mode:
authorareski <areski@gmail.com>2014-07-26 13:06:49 +0200
committerTim Graham <timograham@gmail.com>2014-07-26 10:38:46 -0400
commit90faa196f67863370a4682ecfd053e189cd46705 (patch)
tree804702f2d6ffd7ce5e4d76ed86585deeab5e6200 /django/db
parent6d5daa30cf29d0bada0586213ecb2959152566b4 (diff)
Fixed #22873 -- Renamed use_debug_cursor to force_debug_cursor to clarify the behavior.
Diffstat (limited to 'django/db')
-rw-r--r--django/db/backends/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/db/backends/__init__.py b/django/db/backends/__init__.py
index d3651cda21..9e223c9cbb 100644
--- a/django/db/backends/__init__.py
+++ b/django/db/backends/__init__.py
@@ -45,7 +45,7 @@ class BaseDatabaseWrapper(object):
self.alias = alias
# Query logging in debug mode or when explicitly enabled.
self.queries_log = deque(maxlen=self.queries_limit)
- self.use_debug_cursor = False
+ self.force_debug_cursor = False
# Transaction related attributes.
# Tracks if the connection is in autocommit mode. Per PEP 249, by
@@ -75,7 +75,7 @@ class BaseDatabaseWrapper(object):
@property
def queries_logged(self):
- return self.use_debug_cursor or settings.DEBUG
+ return self.force_debug_cursor or settings.DEBUG
@property
def queries(self):