app/soc/views/helper/forms.py
changeset 753 7d6dead86b59
parent 741 2dc2c65c5f76
child 866 6c918ceba37a
equal deleted inserted replaced
752:e9a45874fe37 753:7d6dead86b59
    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):