diff --git a/rest_framework/templatetags/rest_framework.py b/rest_framework/templatetags/rest_framework.py index 34423c801..f8d761ec2 100644 --- a/rest_framework/templatetags/rest_framework.py +++ b/rest_framework/templatetags/rest_framework.py @@ -140,10 +140,8 @@ def optional_logout(request, user=""):
  • Log out
  • """ -# snippet = format_html(snippet, user=escape(user), href=logout_url, next=escape(request.path)) else: snippet = "Log out" -# snippet = format_html(snippet, href=logout_url, next=escape(request.path)) snippet = format_html(snippet, user=escape(user), href=logout_url, next=escape(request.path)) return mark_safe(snippet)