File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 3
3
from django .contrib .staticfiles import finders
4
4
from django .core .serializers .json import DjangoJSONEncoder
5
5
from django .utils .safestring import mark_safe
6
+ from optional_django import six
6
7
from .exceptions import ComponentSourceFileNotFound , ComponentWasNotBundled
7
8
from .services import RenderService
8
9
from .settings import WATCH_SOURCE
@@ -31,7 +32,10 @@ def __unicode__(self):
31
32
def render_markup (self ):
32
33
markup = self .markup
33
34
if self .bundle and not self .to_static_markup :
34
- markup = '<span id="{id}">{markup}</span>' .format (
35
+ template = '<span id="{id}">{markup}</span>'
36
+ if six .PY2 :
37
+ template = unicode (template )
38
+ markup = template .format (
35
39
id = self .get_container_id (),
36
40
markup = markup ,
37
41
)
Original file line number Diff line number Diff line change 1
1
django
2
2
django-node == 4.0.0
3
- django-webpack == 3.0.1
3
+ django-webpack == 3.0.1
4
+ optional-django == 0.1.0
You can’t perform that action at this time.
0 commit comments