﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
5236	Provide stack trace information in sql debug entries	calvin@…	Philippe Raoult	"Hi,

when profiling django views I often use the list of stored SQL queries to review. What I am missing there is where each of the SQL statements comes from. So I added a stack frame text to each of them.
I have not measured the performance impact, but since it only affects installations with DEBUG=True, I consider the tradeoff acceptable.

The patch also simplifies the debug entry by splitting off the storing to a separate method save_entry().
"		closed	Database layer (models, ORM)	dev		wontfix	feature debug		Ready for checkin	1	0	0	0	0	0
