fix: sale creation in populate_more

This commit is contained in:
thomas girod 2024-09-17 10:27:59 +02:00 committed by Bartuccio Antoine
parent f624b7c66d
commit acad74528d

View File

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