Django

Code

Ticket #6226: allow_tags_fix.diff

File allow_tags_fix.diff, 0.6 kB (added by jgelens, 8 months ago)

patch

  • django/contrib/admin/templatetags/admin_list.py

    old new  
    148148                # function has an "allow_tags" attribute set to True. 
    149149                if not allow_tags: 
    150150                    result_repr = escape(result_repr) 
     151                else: 
     152                    result_repr = mark_safe(result_repr) 
    151153        else: 
    152154            field_val = getattr(result, f.attname) 
    153155