#35872: Add error message when invalid ModelForm Meta attributes are set
---------------------------------------+----------------------------
Reporter: jernwerber | Owner: jernwerber
Type: New feature | Status: assigned
Component: Forms | Version: 5.0
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 1
UI/UX: 0 |
---------------------------------------+----------------------------
Invalid (e.g., non-existent, misspelled) attributes that are added to a
`ModelForm`'s inner `Meta` class are silently ignored, but they should
instead raise an error since they would signal either a mistake or
misunderstanding/misapplication of the Meta class (as is the case
elsewhere, e.g., if an invalid attribute is included in a `Model`'s inner
`Meta` class,
[https://github.com/django/django/blob/e8e503551100af5c29d253870233dee838dbafa3/django/db/models/options.py#L218
a TypeError is raised]).
--
Ticket URL: <https://code.djangoproject.com/ticket/35872>
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 view this discussion visit
https://groups.google.com/d/msgid/django-updates/01070192d5dd0f74-7a7b6779-bfd4-4cbf-9f05-049be13c4d1e-000000%40eu-central-1.amazonses.com.