A common use case of forms is to subclass some type of base form and add a couple extra fields. Take the following base form for example:
The model has a variety of other fields in it so I’m using fields in the Meta class to limit to just these three. Now let’s add a couple fields in a subclass:
As you can see, rather than re-specifying all the fields in the Meta class I am simply adding the new fields to the parent’s existing field list.
It’s not working anymore (Django 1.11)
I have this code running on Django 1.11 without issue. What error are you seeing?
i tried this code so that in my profile form i have some user fields but the problem is the changes on the user’s fields are not saved