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

Removed unneded str() calls prior to mark_safe(); simplified mark_safe().

This commit is contained in:
Sergey Fedoseev
2018-07-09 20:25:11 +05:00
committed by Tim Graham
parent c9088cfc7b
commit 857f860d56
3 changed files with 4 additions and 6 deletions

View File

@@ -448,7 +448,7 @@ def safeseq(value):
individually, as safe, after converting them to strings. Return a list
with the results.
"""
return [mark_safe(str(obj)) for obj in value]
return [mark_safe(obj) for obj in value]
@register.filter(is_safe=True)