fix: backfill_penalty_club_id 改用 FluentQuery.to_list()

This commit is contained in:
XingQue
2026-06-24 05:31:57 +08:00
parent 5c4663c8ec
commit 32486a6e77

View File

@@ -23,7 +23,7 @@ class Command(BaseCommand):
updated = 0
with transaction.atomic():
for p in qs.iterator():
for p in qs.to_list():
order = None
if p.RelatedOrderID:
order = Order.query.filter(OrderID=p.RelatedOrderID).first()