#17583 closed New feature (duplicate)
Add raw kwarg to m2m signals
Description ¶
I think the m2m_changed
signal would benefit from a raw
flag similar to the pre_save
and post_save
signals. I've got some signals called on M2M change which die when called during fixture loading. At present the only way I can see to do this is to hook into the pre_save
and cache that I'm in fixture-loading mode... Pretty nasty!
Change History (2)
comment:1 by , 13 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
comment:2 by , 13 years ago
Triage Stage: | Unreviewed → Design decision needed |
---|
That does work, but it's a pretty unpleasant solution. I'd like to know the design decision behind that option existing on models but not M2M - consistent design seems more suitable to me than stack inspection hacks.
You'll probably want the solution proposed in #8399