I read the django docs near signals and wrote this code snippet for my Car model:
@receiver(request_finished) def signal_callback(sender, **kwargs): print 'Save Signal received' @receiver(post_save, sender=Car) def signal_handler(sender, **kwargs): pass request_finished(signal_callback, sender=car, dispatch_url="Unique save id")
But the problem is that when I start my server and just open the administrator, I get a lot of 'Save Signal received' in my terminal. I am wondering, I limited only signal_handler to post_save . But still, without even saving anything, the message appears many times. I do not understand this.
Note: I will be honest. I understood parts of it, not all of the documentation.
source share