Skip to content

Commit

Permalink
Use unicode strings.
Browse files Browse the repository at this point in the history
  • Loading branch information
glogiotatidis committed Mar 28, 2016
1 parent 1071e2b commit 1469907
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions snippets/base/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,10 +426,10 @@ def render(self):
]
if search_engine_identifiers:
attrs.append(('data-exclude-from-search-engines',
','.join(search_engine_identifiers)))
u','.join(search_engine_identifiers)))

attr_string = ' '.join('{0}="{1}"'.format(key, value) for key, value in
attrs)
attr_string = u' '.join(u'{0}="{1}"'.format(key, value) for key, value in
attrs)

rendered_snippet = u'<div {attrs}>{content}</div>'.format(
attrs=attr_string,
Expand Down

0 comments on commit 1469907

Please sign in to comment.