[Answered ]-Django save method is not working as expected

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

Leave a comment