Add the 'raw' argument with the 'm2m_changed' signal
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
(12)
| Triage Stage: |
Unreviewed → Accepted
|
| Has patch: |
set
|
| Owner: |
changed from nobody to Mariusz Felisiak
|
| Status: |
new → assigned
|
| Patch needs improvement: |
set
|
| Patch needs improvement: |
unset
|
| Triage Stage: |
Accepted → Ready for checkin
|
| Resolution: |
→ fixed
|
| Status: |
assigned → closed
|
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.