Skip to content

Commit 163f254

Browse files
committed
Fix : Relationship order - delivery joined loading
1 parent c9b9cc6 commit 163f254

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/modules/amap/models_amap.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ class Order(Base):
8484
collection_slot: Mapped[AmapSlotType]
8585
ordering_date: Mapped[datetime]
8686
delivery: Mapped["Delivery"] = relationship(
87+
lazy="joined",
8788
back_populates="orders",
8889
)
8990
user: Mapped[CoreUser] = relationship(

0 commit comments

Comments
 (0)