#27157: AdminForm model_admin cannot be None
-------------------------------+--------------------
Reporter: tpazderka | Owner: nobody
Type: Bug | Status: new
Component: contrib.admin | Version: 1.10
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------
When using `AdminForm` without the keyword argument `model_admin` which
defaults to None, we get `AttributeError` by calling
`get_empty_value_display` without checking for the `model_admin` type.
This seems to be also true for `AdminReadonlyField` class.
--
Ticket URL: <https://code.djangoproject.com/ticket/27157>
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/052.dca4f128241f26c82409d99d77f02e99%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.