I've got model, which has 'active' field, I'd like to do action if it's value has changed
class Good(TimeStampedModel):
active = models.BooleanField(default=True)
def save(self, **kwargs):
#if self.active has changed:
#do_something()
super().save(self, **kwargs)