Opened 19 months ago

Last modified 10 months 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 Changed 19 months ago by Tim Graham

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.

comment:2 Changed 19 months ago by Tim Graham

Triage Stage: UnreviewedAccepted

comment:3 Changed 10 months ago by direx

Cc: direx added
Note: See TracTickets for help on using tickets.
Back to Top