#34365: add_form_template used as change_form_template when adding object when
only
declaring change_form_template
------------------------------------------------+------------------------
Reporter: xander-m2k | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: contrib.admin | Version: dev
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 1
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
------------------------------------------------+------------------------
So when you declare change_form_template in your admin model.
Automatically, when trying to add an object in the admin panel, this form
also gets used. This is weird unexpected behavior.
(https://github.com/django/django/blob/main/django/contrib/admin/options.py#L1306)
--
Ticket URL: <https://code.djangoproject.com/ticket/34365>
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/010701867e5bd381-8605ef81-3bc8-4af3-8c36-acc866357e31-000000%40eu-central-1.amazonses.com.