Opened 9 years ago

Closed 8 years ago

Last modified 7 years ago

#677 closed defect (fixed)

[patch] sql_queries list not getting reset between requests

Reported by: seancazzell@… Owned by: adrian
Component: Database layer (models, ORM) Version:
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


In debug mode, a log of sql queries are stored as a list in django.db.db.queries - this list isn't getting cleared between requests. The enclosed patch adds the necessary line of code to handlers/ in the get_response method (seemed the most logical place for it).

Attachments (1)

sql_queries_reset_fix.diff (562 bytes) - added by seancazzell@… 9 years ago.

Download all attachments as: .zip

Change History (2)

Changed 9 years ago by seancazzell@…

comment:1 Changed 8 years ago by adrian

  • Resolution set to fixed
  • Status changed from new to closed

(In [1009]) Fixed #677 -- db.queries is now reset per request. Thanks, seancazzell

Add Comment

Modify Ticket

Change Properties
<Author field>
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.