Skip to content

Commit f2e58ec

Browse files
committed
Remove calls to mark_safe
1 parent 5b31809 commit f2e58ec

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

admin/base/filters.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from django import template
2-
from django.utils.safestring import mark_safe
32
import json
43

54

@@ -8,4 +7,4 @@
87

98
@register.filter
109
def jsonify(o):
11-
return mark_safe(json.dumps(o))
10+
return json.dumps(o)

admin/base/templatetags/filters.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
# h/t https://djangosnippets.org/snippets/1250/
22
from django import template
3-
from django.utils.safestring import mark_safe
43
import json
54

65
register = template.Library()
76

87
@register.filter
98
def jsonify(o):
10-
return mark_safe(json.dumps(o))
9+
return json.dumps(o)

0 commit comments

Comments
 (0)