Bugfix for django-debug-toolbar panel.