Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#17583 closed New feature (duplicate)

Add raw kwarg to m2m signals

Reported by: Marc Tamlyn Owned by: nobody
Component: Database layer (models, ORM) Version: 1.3
Severity: Normal Keywords: signal, m2m
Cc: Triage Stage: Design decision needed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

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 Claude Paroz, 13 years ago

Resolution: duplicate
Status: newclosed

You'll probably want the solution proposed in #8399

comment:2 by anonymous, 13 years ago

Triage Stage: UnreviewedDesign 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.

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