Commentaire dans la fonction
This commit is contained in:
parent
46e7305953
commit
d7d0daea0d
1 changed files with 3 additions and 3 deletions
|
@ -176,10 +176,10 @@ class ParticipantPaidQueryset(models.QuerySet):
|
|||
indiquant si un participant a payé toutes ses attributions.
|
||||
"""
|
||||
|
||||
def annotate_paid(self):
|
||||
# OuterRef permet de se référer à un champ d'un modèle non encore fixé
|
||||
# Voir:
|
||||
# https://docs.djangoproject.com/en/2.2/ref/models/expressions/#django.db.models.OuterRef
|
||||
def annotate_paid(self):
|
||||
unpaid = Attribution.objects.filter(
|
||||
participant=models.OuterRef("pk"), paid=False
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue