twaddington / django-gravatar

Essential Gravatar support for Django. Features helper methods, templatetags and a full test suite!
MIT License
149 stars 33 forks source link

escaped html code in Django 1.9a #21

Closed and-nothing-else closed 8 years ago

and-nothing-else commented 8 years ago

After update to 1.9 tag {% gravatar email %} return following code: <img class="gravatar" src="https://secure.gravatar.com…" />

twaddington commented 8 years ago

Django 1.9 is an alpha release. This plugin has not been tested with Django 1.9a.

jarekwg commented 8 years ago

This is technically a bug. The templatetag return strings should be marked safe: https://docs.djangoproject.com/en/1.8/ref/utils/#django.utils.safestring.mark_safe

Django 1.9 is just being stricter when it comes to this.

twaddington commented 8 years ago

@jarekwg if you submit a pull request with passing tests I'd be happy to merge it in.

twaddington commented 8 years ago

This has been merged into master. I'll cut a new version and update PyPi shortly.

twaddington commented 8 years ago

Pushed to PyPi as 1.4.0: https://pypi.python.org/pypi/django-gravatar2/1.4.0