1๐
โ
Iโm not sure that why did you know that the update_discount
method is not called. But you should try to fix it like this:
def save(self, *args, **kwargs):
super().save(*args, **kwargs)
print('saved.')
self.update_discount()
print('updated discount.')
๐คVu Phan
Source:stackexchange.com