Ticket #12466: patch_css_classes.diff

File patch_css_classes.diff, 749 bytes (added by Bernd Schlapsi <brot@…>, 15 years ago)

patch for this issue

  • django/forms/forms.py

     
    137137        "Helper function for outputting HTML. Used by as_table(), as_ul(), as_p()."
    138138        top_errors = self.non_field_errors() # Errors that should be displayed above all fields.
    139139        output, hidden_fields = [], []
    140         html_class_attr = ''
    141140
    142141        for name, field in self.fields.items():
     142            html_class_attr = ''
    143143            bf = BoundField(self, field, name)
    144144            bf_errors = self.error_class([conditional_escape(error) for error in bf.errors]) # Escape and cache in local variable.
    145145            if bf.is_hidden:
Back to Top