I m building an e-commerce website. I have a Product and Order models. It s possible that a customer order a product and then the admin change its price or other fields before the customer actually get it.
A possible solution is to add a version field to the Product model. When the admin update a product field I ll add a timestamp and create a new object instead of updating the old one. An Order will have a reference to a specific product version.
Does this make sense? Will overriding the Product Save method be sufficient to make it work?
增 编