Ticket #3286: forms.py.diff
File forms.py.diff, 671 bytes (added by , 18 years ago) |
---|
-
django/newforms/forms.py
125 125 "Returns this form rendered as HTML <p>s." 126 126 return self._html_output(u'<p>%(label)s %(field)s</p>', u'<p>%s</p>', '</p>', True) 127 127 128 def as_div(self): 129 "Returns this form rendered as HTML <div>s." 130 return self._html_output(u'<div>%(label)s %(field)s</div>', u'<div>%s</div>', '</div>', True) 131 128 132 def non_field_errors(self): 129 133 """ 130 134 Returns an ErrorList of errors that aren't associated with a particular