fix: backfill_penalty_club_id 改用 FluentQuery.to_list()
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user