Ticket #12466: patch_css_classes.diff
File patch_css_classes.diff, 749 bytes (added by , 15 years ago) |
---|
-
django/forms/forms.py
137 137 "Helper function for outputting HTML. Used by as_table(), as_ul(), as_p()." 138 138 top_errors = self.non_field_errors() # Errors that should be displayed above all fields. 139 139 output, hidden_fields = [], [] 140 html_class_attr = ''141 140 142 141 for name, field in self.fields.items(): 142 html_class_attr = '' 143 143 bf = BoundField(self, field, name) 144 144 bf_errors = self.error_class([conditional_escape(error) for error in bf.errors]) # Escape and cache in local variable. 145 145 if bf.is_hidden: