Ticket #6983: 6893.diff

File 6893.diff, 585 bytes (added by dan90, 7 years ago)

patch to fix quoting of added classes in inline edit in oldforms-admin

  • django/contrib/admin/views/main.py

     
    133133        if max([bool(f.errors()) for f in self.form_fields]):
    134134            classes.append('error')
    135135        if classes:
    136             self.cell_class_attribute = u' class="%s" ' % ' '.join(classes)
     136            self.cell_class_attribute = mark_safe(u' class="%s" ' % ' '.join(classes))
    137137        self._repr_filled = False
    138138
    139139        if field.rel:
Back to Top