fix: sale creation in populate_more

This commit is contained in:
thomas girod authored and Bartuccio Antoine committed 2024-09-17 16:05:42 +02:00
1 parent f624b7c66d
commit acad74528d
1 file changed
+1 -1
+1 -1
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]
)
)
)