fix: backfill_penalty_club_id 改用 FluentQuery.to_list()

This commit is contained in:
XingQue committed 2026-06-24 05:31:57 +08:00
1 parent 22b7fd2994
commit 9615cc9dbf
1 file changed
+1 -1
@@ -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()