Identify the changed fields in django post_save signal
问题 I'm using django's post_save signal to execute some statements after saving the model. class Mode(models.Model): name = models.CharField(max_length=5) mode = models.BooleanField() from django.db.models.signals import post_save from django.dispatch import receiver @receiver(post_save, sender=Mode) def post_save(sender, instance, created, **kwargs): # do some stuff pass Now I want to execute a statement based on whether the value of the mode field has changed or not. @receiver(post_save, sender