django-debug-toolbar/django-debug-toolbar — pull request #630 by tim-schilling (2014-08-21 00:46:36+00:00)
Title: Fix infinite recursion bug with SQL and Cache panels

Move the stack trace loop into a utility method. Check for calls to get_template_context.

I wasn't sure about the logic to check the current file. I had it done programmatically, but that was ugly and probably more confusing than just checking the string value of the name.

Closes #598