[Answer]-Django ModelForm – override save() and add fields to self._meta.fields

1👍

This wont work. You need to add it in the __init__ method.

def __init__(self, *args, **kwargs):
    super(PartialAuthorForm, self).__init__(*args, **kwargs)
    self.fields['city'] = forms.CharField()    
    self.fields['region'] = forms.CharField()
    self.fields['zip'] = forms.CharField()

Leave a comment