#Django signals
3 messages · Page 1 of 1 (latest)
If you want a signal that fires on model save, you can use the default post_save signal
@receiver(post_save, sender=MyModel)
The nature of the signal is, you can subscribe from any application, whether the sender model is used in the app or not.
If you want to subscribe to all save events from all models, you can omit sender=
@receiver(post_save)
def my_func(sender, instance, created, **kwargs)