Ticket #8194: 8194_against_8630.diff
File 8194_against_8630.diff, 982 bytes (added by , 16 years ago) |
---|
-
django/contrib/admin/helpers.py
20 20 yield Fieldset(self.form, name, **options) 21 21 22 22 def first_field(self): 23 if self.form._meta.fields is not None: 24 name = self.form._meta.fields[0] 25 return forms.BoundField(self.form, self.form.fields[name], name) 23 26 for bf in self.form: 24 27 return bf 25 28 -
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