1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Refs #27753 -- Favored SafeString over SafeText.

This commit is contained in:
Tim Graham
2019-02-05 09:38:29 -05:00
parent d55e882927
commit 77d25dbd0f
8 changed files with 25 additions and 31 deletions

View File

@@ -1,7 +1,7 @@
from django.middleware.csrf import get_token
from django.utils.functional import lazy
from django.utils.html import format_html
from django.utils.safestring import SafeText
from django.utils.safestring import SafeString
def csrf_input(request):
@@ -10,5 +10,5 @@ def csrf_input(request):
get_token(request))
csrf_input_lazy = lazy(csrf_input, SafeText, str)
csrf_input_lazy = lazy(csrf_input, SafeString, str)
csrf_token_lazy = lazy(get_token, str)