Opened 8 years ago
Last modified 7 years ago
#27380 new New feature
Add the 'raw' argument with the 'm2m_changed' signal
Reported by: | Élie Bouttier | Owned by: | nobody |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | 1.10 |
Severity: | Normal | Keywords: | |
Cc: | direx | Triage Stage: | Accepted |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
The 'raw' argument is sent with pre_save and post_save signals in order to detect fixture loading and avoid un-needed operations in this case.
Unfortunatly, this argument is not sent with m2m_changed signal !
I find a work-around on stack-overflow for tests which consist in disconnecting the m2m_signal in the setUpClass.
However, this is not applicable for loaddata management command.
Please send the 'raw' argument with the m2m_changed signal, this is needed!
Change History (3)
comment:1 by , 8 years ago
comment:2 by , 8 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:3 by , 7 years ago
Cc: | added |
---|
Note:
See TracTickets
for help on using tickets.
This was also proposed in #17583 which was marked as a duplicate of #8399 but I don't see an elegant solution in that ticket, so maybe it's time to accept this.