fix partial work done for changes in django-debug-toolbar-1.0.1

Replacement for #2225, without the crazy unicode file