* Fixed wrong id for PriceSnapshot
This commit is contained in:
parent
0e5c0ce16f
commit
aa3aa00ae1
|
|
@ -577,7 +577,7 @@ class Checklist(models.Model):
|
||||||
self.price_snapshot = None
|
self.price_snapshot = None
|
||||||
|
|
||||||
snapshot, _ = PriceSnapshot.objects.get_or_create(
|
snapshot, _ = PriceSnapshot.objects.get_or_create(
|
||||||
checklist__id=self.price_snapshot_id,
|
checklist__id=self.id,
|
||||||
defaults={
|
defaults={
|
||||||
'yuan_rate': self.yuan_rate,
|
'yuan_rate': self.yuan_rate,
|
||||||
'delivery_price_CN': self.delivery_price_CN,
|
'delivery_price_CN': self.delivery_price_CN,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user