Skip to content

Commit

Permalink
Update middleware.py
Browse files Browse the repository at this point in the history
from __future__ import unicode_literals
  • Loading branch information
w-diesel authored and graingert committed Apr 14, 2013
1 parent a088ed0 commit 3aa8c4c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions debug_toolbar/middleware.py
@@ -1,3 +1,4 @@
from __future__ import unicode_literals
"""
Debug Toolbar middleware
"""
Expand Down Expand Up @@ -48,7 +49,7 @@ def __init__(self):
self.show_toolbar = self._show_toolbar # default

# The tag to attach the toolbar to
self.tag = u'</body>'
self.tag = '</body>'

if hasattr(settings, 'DEBUG_TOOLBAR_CONFIG'):
show_toolbar_callback = settings.DEBUG_TOOLBAR_CONFIG.get(
Expand All @@ -58,7 +59,7 @@ def __init__(self):

tag = settings.DEBUG_TOOLBAR_CONFIG.get('TAG', None)
if tag:
self.tag = u'</' + tag + u'>'
self.tag = '</' + tag + '>'

def _show_toolbar(self, request):
if getattr(settings, 'TEST', False):
Expand Down

0 comments on commit 3aa8c4c

Please sign in to comment.