Lets say I have one form which inherits from ModelForm and a second one that inherits from the first one. What I want to do is add 2 fields in the second form, the fields are bound to the properties of the model. Which would be the best way to do this?
Example: the model has fields: name, content, price, currency... I want the BasicForm class to have only the name and content fields and the PriceForm which inherits from BasicForm to have the fields from the first one + price and currency. This example is oversimplified, in practice my model has at least 10 fields and I'd have at least 4 different forms which would inherit from the BaseForm and will be used depending on the category of the model instance. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---