Why does the following not give a final model form with 3 fields?
The two extra fields are not available. If I move them directly into the model form, it works but I wanted to declare these fields in a separate form because I plan on reusing them in several forms. Is there a way to do that?
class FormA(forms.Form):
extra_field_1 = forms.CharField(required=False)
extra_field_2 = forms.CharField(required=False)
class ModelFormA(FormA, forms.ModelForm):
class Meta:
model = ModelA
fields = ['email']
Thanks Mike