How can I save a model, such that signals arent sent. (post_save and pre_save)
If you have mutual relations on models and their signals still you can decouple signal's logic to have more signals of same type, and handle your logic in more sophisticated way:
You can check in signals, the state of object:
kwargs['created']
You can check the state of any pasted extra value: So in one signal, you will read at first:
if `kwargs['instance'].skip_signals`:
return
and in another place, before save()
you will just set that skip_signals
on the specific object, in specific situation.
(there is no need to define it as model field)
You can also do not emit signals:
save_without_signals()
,filter(pk=<>).update(...)