Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #677 -- db.queries is now reset per request. Thanks, seancazzell

git-svn-id: http://code.djangoproject.com/svn/django/trunk@1009 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 5c3d1ec163ecbb6209965d1ea32fe4d380dcc9c6 1 parent 1ed9986
Adrian Holovaty adrianholovaty authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  django/core/handlers/base.py
3  django/core/handlers/base.py
View
@@ -48,6 +48,9 @@ def get_response(self, path, request):
from django.core.mail import mail_admins
from django.conf.settings import DEBUG, INTERNAL_IPS, ROOT_URLCONF
+ # Reset query list per request.
+ db.db.queries = []
+
# Apply request middleware
for middleware_method in self._request_middleware:
response = middleware_method(request)
Please sign in to comment.
Something went wrong with that request. Please try again.