From 16bed84965e514734bdade43e0f2958f227e5a77 Mon Sep 17 00:00:00 2001 From: Petri Riihikallio Date: Tue, 10 Aug 2021 15:59:06 +0300 Subject: [PATCH] Clean up comments --- rest_framework/templatetags/rest_framework.py | 2 -- 1 file changed, 2 deletions(-) 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)