diff --git a/rattail/db/extension/model.py b/rattail/db/extension/model.py index d659becb1ce8ba7411e3e72dcec267f9b512bac0..2fdcbfb258654281bcb4e0f4d015c133904c6ee2 100644 --- a/rattail/db/extension/model.py +++ b/rattail/db/extension/model.py @@ -714,11 +714,13 @@ Product.prices = relationship( Product.regular_price = relationship( ProductPrice, primaryjoin=Product.regular_price_uuid == ProductPrice.uuid, + lazy='joined', post_update=True) Product.current_price = relationship( ProductPrice, primaryjoin=Product.current_price_uuid == ProductPrice.uuid, + lazy='joined', post_update=True)