django-mongonaut
django-mongonaut copied to clipboard
UnicodeEncodeError in mongonaut_tags
In mongonaut_tags.py
there are two similar lines:
(1) return mark_safe("""<a href="{0}">{1}</a>""".format(value, value))
(2) return mark_safe("""<a href="{0}">{1}</a>""".format(url, value.__unicode__()))
Is there a reason for using .__unicode__()
in (2)? (It gives me me UnicodeEncodeError
on a string that includes unicode characters. Removing .__unicode__()
seems to help.)
Cheers