#31265: Bug in ModelAdmin.render_change_form()'s has_file_field check
------------------------------------------------+------------------------
Reporter: Tatiana Vasilevskaya | Owner: nobody
Type: Bug | Status: new
Component: contrib.admin | Version: 2.2
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
------------------------------------------------+------------------------
`ModelAdmin.render_change_form()`'s `has_file_field` check instantiates a
formset form without calling `get_form_kwargs` in
`admin_formset.formset.form().is_multipart()` and thus might fail in case
of a customized `__init__` of the formset form (designed to be used with
the customized `get_form_kwargs`). Cherry-pick of
https://github.com/django/django/commit/7c3a8b9db2ccfbb247732ce6726ab8dc11eff34d
into 2.2.x fixes the problem.
--
Ticket URL: <https://code.djangoproject.com/ticket/31265>
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 on the web visit
https://groups.google.com/d/msgid/django-updates/050.a802ad0b2f9160edea3ca5bd0f298722%40djangoproject.com.