diff options
| author | areski <areski@gmail.com> | 2014-07-26 13:06:49 +0200 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-07-26 10:38:46 -0400 |
| commit | 90faa196f67863370a4682ecfd053e189cd46705 (patch) | |
| tree | 804702f2d6ffd7ce5e4d76ed86585deeab5e6200 /django/test | |
| parent | 6d5daa30cf29d0bada0586213ecb2959152566b4 (diff) | |
Fixed #22873 -- Renamed use_debug_cursor to force_debug_cursor to clarify the behavior.
Diffstat (limited to 'django/test')
| -rw-r--r-- | django/test/utils.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/django/test/utils.py b/django/test/utils.py index 9a0d7a494c..4c5c910be0 100644 --- a/django/test/utils.py +++ b/django/test/utils.py @@ -507,15 +507,15 @@ class CaptureQueriesContext(object): return self.connection.queries[self.initial_queries:self.final_queries] def __enter__(self): - self.use_debug_cursor = self.connection.use_debug_cursor - self.connection.use_debug_cursor = True + self.force_debug_cursor = self.connection.force_debug_cursor + self.connection.force_debug_cursor = True self.initial_queries = len(self.connection.queries_log) self.final_queries = None request_started.disconnect(reset_queries) return self def __exit__(self, exc_type, exc_value, traceback): - self.connection.use_debug_cursor = self.use_debug_cursor + self.connection.force_debug_cursor = self.force_debug_cursor request_started.connect(reset_queries) if exc_type is not None: return |
