mirror of
https://github.com/django/django.git
synced 2024-12-24 10:05:46 +00:00
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:
parent
1ed99862c6
commit
5c3d1ec163
@ -48,6 +48,9 @@ class BaseHandler:
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user