From 32486a6e770392252c5a7e4e579f26a7a6e23da4 Mon Sep 17 00:00:00 2001 From: XingQue Date: Wed, 24 Jun 2026 05:31:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20backfill=5Fpenalty=5Fclub=5Fid=20?= =?UTF-8?q?=E6=94=B9=E7=94=A8=20FluentQuery.to=5Flist()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jituan/management/commands/backfill_penalty_club_id.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jituan/management/commands/backfill_penalty_club_id.py b/jituan/management/commands/backfill_penalty_club_id.py index 6c00ec1..e6f58ef 100644 --- a/jituan/management/commands/backfill_penalty_club_id.py +++ b/jituan/management/commands/backfill_penalty_club_id.py @@ -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()