1
0
mirror of https://github.com/ae-utbm/sith.git synced 2025-06-22 19:25:22 +00:00

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

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