[patch] sql_queries list not getting reset between requests
|Reported by:||Owned by:||Adrian Holovaty|
|Component:||Database layer (models, ORM)||Version:|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
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/base.py in the get_response method (seemed the most logical place for it).