Ticket #2148: admin_list.diff

File admin_list.diff, 569 bytes (added by rushman@…, 18 years ago)

patch

  • admin_list.py

     
    131131
    132132            if isinstance(f.rel, models.ManyToOneRel):
    133133                if field_val is not None:
    134                     result_repr = getattr(result, f.name)
     134                    result_repr = escape(getattr(result, f.name))
    135135                else:
    136136                    result_repr = EMPTY_CHANGELIST_VALUE
    137137            # Dates and times are special: They're formatted in a certain way.
Back to Top