diff options
| author | Jannis Leidel | 2013-12-09 19:02:24 +0100 |
|---|---|---|
| committer | Jannis Leidel | 2013-12-09 19:02:24 +0100 |
| commit | 7a04ec6c4f808f59d9f689f72efb182640308494 (patch) | |
| tree | 527ae02baf6227fee3948a044a7f2ff79d0ce1f4 | |
| parent | 810a2fbc5157f619eb3d74c73c882f059360506b (diff) | |
| download | django-debug-toolbar-7a04ec6c4f808f59d9f689f72efb182640308494.tar.bz2 | |
Some imports.
| -rw-r--r-- | debug_toolbar/panels/staticfiles.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/debug_toolbar/panels/staticfiles.py b/debug_toolbar/panels/staticfiles.py index 94bc35a..0ecba51 100644 --- a/debug_toolbar/panels/staticfiles.py +++ b/debug_toolbar/panels/staticfiles.py @@ -1,4 +1,4 @@ -from __future__ import absolute_import +from __future__ import absolute_import, unicode_literals from os.path import normpath, join try: import threading @@ -11,8 +11,9 @@ from django.core.files.storage import get_storage_class from django.contrib.staticfiles import finders, storage from django.contrib.staticfiles.templatetags import staticfiles -from django.utils.translation import ungettext, ugettext_lazy as _ +from django.utils.encoding import python_2_unicode_compatible from django.utils.functional import LazyObject +from django.utils.translation import ungettext, ugettext_lazy as _ try: from collections import OrderedDict except ImportError: @@ -22,6 +23,7 @@ from debug_toolbar import panels from debug_toolbar.utils import ThreadCollector +@python_2_unicode_compatible class StaticFile(object): """ Representing the different properties of a static file. |
