mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-10 00:03:24 +00:00
fix: sale creation in populate_more
This commit is contained in:
parent
f624b7c66d
commit
acad74528d
@ -288,7 +288,7 @@ class Command(BaseCommand):
|
|||||||
since=Subquery(
|
since=Subquery(
|
||||||
Subscription.objects.filter(member__customer=OuterRef("pk"))
|
Subscription.objects.filter(member__customer=OuterRef("pk"))
|
||||||
.annotate(res=Min("subscription_start"))
|
.annotate(res=Min("subscription_start"))
|
||||||
.values("res")
|
.values("res")[:1]
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user