KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I want to extend ModelForms with the main purpose of adding fields to the form. I think it is easier to see with an example: # Basic listing class BasicForm(ModelForm): class Meta: model = Business fields = ('category', 'city', 'name', 'address', 'slogan', 'phone', 'website', 'email') class SocialForm(BasicForm): class Meta: model = Business fields = ('facebook','twitter') Would that even work? Or would it just wipe out the other fields from BasicForm in SocialForm? What is the correct way of doing this?
Tags (comma-separated)
Save Edits
Cancel