equal
deleted
inserted
replaced
55 """Fixes label and help_text issues after parent initialization. |
55 """Fixes label and help_text issues after parent initialization. |
56 |
56 |
57 Args: |
57 Args: |
58 *args, **kwargs: passed through to parent __init__() constructor |
58 *args, **kwargs: passed through to parent __init__() constructor |
59 """ |
59 """ |
60 super(BaseForm, self).__init__(*args, **kwargs) |
60 super(djangoforms.ModelForm, self).__init__(*args, **kwargs) |
61 |
61 |
62 for field_name in self.fields.iterkeys(): |
62 for field_name in self.fields.iterkeys(): |
63 # Since fields can be added only to the ModelForm subclass, check to |
63 # Since fields can be added only to the ModelForm subclass, check to |
64 # see if the Model has a corresponding field first. |
64 # see if the Model has a corresponding field first. |
65 if hasattr(self.Meta.model, field_name): |
65 if hasattr(self.Meta.model, field_name): |