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
This commit is contained in:
Adrian Holovaty 2005-10-25 01:51:57 +00:00
parent 1ed99862c6
commit 5c3d1ec163
1 changed files with 3 additions and 0 deletions

View File

@ -48,6 +48,9 @@ class BaseHandler:
from django.core.mail import mail_admins from django.core.mail import mail_admins
from django.conf.settings import DEBUG, INTERNAL_IPS, ROOT_URLCONF from django.conf.settings import DEBUG, INTERNAL_IPS, ROOT_URLCONF
# Reset query list per request.
db.db.queries = []
# Apply request middleware # Apply request middleware
for middleware_method in self._request_middleware: for middleware_method in self._request_middleware:
response = middleware_method(request) response = middleware_method(request)