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:
committed by
Tim Graham
parent
c9088cfc7b
commit
857f860d56
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user