diff --git a/rest_framework/templatetags/rest_framework.py b/rest_framework/templatetags/rest_framework.py index b584fdbaf..9eeb19bd9 100644 --- a/rest_framework/templatetags/rest_framework.py +++ b/rest_framework/templatetags/rest_framework.py @@ -7,7 +7,7 @@ from django.core.urlresolvers import NoReverseMatch, reverse from django.template import Context, loader from django.utils import six from django.utils.encoding import force_text, iri_to_uri -from django.utils.html import escape, smart_urlquote +from django.utils.html import escape, format_html, smart_urlquote from django.utils.safestring import SafeData, mark_safe from rest_framework.renderers import HTMLFormRenderer @@ -48,7 +48,8 @@ def optional_login(request): return '' snippet = "