Code

Ticket #6983: base.py.patch

File base.py.patch, 432 bytes (added by bbolli <me+django@…>, 6 years ago)

Auto-escaping patch

  • 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: