Opened 9 months ago
Closed 9 months ago
#35160 closed Bug (needsinfo)
m2m_changed not trigerred when ManyToManyField in autocomplete list
Reported by: | pcnmanon | Owned by: | nobody |
---|---|---|---|
Component: | contrib.admin | Version: | 3.2 |
Severity: | Normal | Keywords: | m2m_changed ManyToManyField autocomplete_fields DEBUG |
Cc: | pcnmanon | Triage Stage: | Unreviewed |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
When a ManyToManyField in Django Admin is set in autocomplete_fields the signal m2m_changed is not triggered if DEBUG=false in settings but if we switch DEBUG to true the signal m2m_changed is triggered.
This is only reproductible if the ManyToManyField is present in autocomplete_fields if it is not, m2m_changed work correctly.
Change History (1)
comment:1 by , 9 months ago
Component: | Database layer (models, ORM) → contrib.admin |
---|---|
Resolution: | → needsinfo |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
I don't see any
DEBUG
-dependent behavior in the admin. Moreover, Django 3.2 in the extended support and no longer receives bugfixes (except security patches), Can you reproduce the issue with Django 5.0? or with the current Django'smain
branch? Please reopen the ticket if you can debug your issue and provide a sample project that reproduce it with Django 5.0+.