From acad74528de54532f6047099e72bb2628263f67d Mon Sep 17 00:00:00 2001 From: thomas girod Date: Tue, 17 Sep 2024 10:27:59 +0200 Subject: [PATCH] fix: sale creation in populate_more --- core/management/commands/populate_more.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/management/commands/populate_more.py b/core/management/commands/populate_more.py index b94f9494..d59ccd02 100644 --- a/core/management/commands/populate_more.py +++ b/core/management/commands/populate_more.py @@ -288,7 +288,7 @@ class Command(BaseCommand): since=Subquery( Subscription.objects.filter(member__customer=OuterRef("pk")) .annotate(res=Min("subscription_start")) - .values("res") + .values("res")[:1] ) ) )