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] ) ) )