#27157: AdminForm may crash if model_admin argument is None
-------------------------------+------------------------------------
Reporter: tpazderka | Owner: nobody
Type: Bug | Status: new
Component: contrib.admin | Version: 1.10
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+------------------------------------
Comment (by shawnz-swiftly):
`model_admin` can't be required because it is set to `None` in
`django/contrib/auth/admin.py` for use on the change password form:
https://github.com/django/django/blob/90429625a85f1f77dfea200c91bd2dabab57974f/django/contrib/auth/admin.py#L207.
However, that form doesn't use any readonly fields, so it doesn't exhibit
this issue.
I realize this is not intended to be a public API but it would be nice to
be able to use this for rendering properly stylized custom pages in the
admin site.
--
Ticket URL: <https://code.djangoproject.com/ticket/27157#comment:4>
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/0107019734069a68-4c32aa40-297a-4109-a606-2deb5faaf3d7-000000%40eu-central-1.amazonses.com.