Ticket #8194: 8298.patch
File 8298.patch, 983 bytes (added by , 16 years ago) |
---|
-
django/contrib/admin/options.py
51 51 yield Fieldset(self.form, name, **options) 52 52 53 53 def first_field(self): 54 if self.form._meta.fields is not None: 55 name = self.form._meta..fields[0] 56 return forms.BoundField(self.form, self.form.fields[name], name) 54 57 for bf in self.form: 55 58 return bf 56 59 -
django/forms/forms.py
13 13 from widgets import Media, media_property, TextInput, Textarea 14 14 from util import flatatt, ErrorDict, ErrorList, ValidationError 15 15 16 __all__ = ('BaseForm', 'Form' )16 __all__ = ('BaseForm', 'Form', 'BoundField') 17 17 18 18 NON_FIELD_ERRORS = '__all__' 19 19