I have a model like this
class Order(models.Model):
product = models.ForeignKey(Product, on_delete=models.DO_NOTHING)
In the product model, I save the price of that product, but from time to time the price may change.
I want when the order is completed and I want to change the product price of that sold product not update the price of the product that is sold in that order. So, the price change should be affected only new orders.
Thanks in advance!