#23824: excluded fields on ModelForm does not work on inherited fields
-------------------------------+--------------------
Reporter: bendavis78 | Owner: nobody
Type: Uncategorized | Status: new
Component: Forms | Version: 1.7
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------
When you have a `ModelForm` subclass, any fields in the `exclude` array
are still included on the form if the field is part of the parent class.
This happens in `ModelFormMetaClass.__new__` when the class overrides
`new_class.base_fields` with the parent fields *after* applying the
exclusions.
--
Ticket URL: <https://code.djangoproject.com/ticket/23824>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/053.887c9995bc0216d7ac5de05c71403a04%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.