From 1d9776daf1fc347c00c98d5ff668f5acb8a7641e Mon Sep 17 00:00:00 2001 From: phzhik Date: Wed, 15 Nov 2023 18:40:00 +0400 Subject: [PATCH] * Fixed wrong id for PriceSnapshot --- store/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/store/models.py b/store/models.py index 3f2e8dc..e85e135 100644 --- a/store/models.py +++ b/store/models.py @@ -577,7 +577,7 @@ class Checklist(models.Model): self.price_snapshot = None snapshot, _ = PriceSnapshot.objects.get_or_create( - checklist__id=self.price_snapshot_id, + checklist__id=self.id, defaults={ 'yuan_rate': self.yuan_rate, 'delivery_price_CN': self.delivery_price_CN,