From d7d0daea0dc409fc6817ca2b391d902a34427a8c Mon Sep 17 00:00:00 2001 From: Ludovic Stephan Date: Mon, 17 Jun 2019 21:40:32 +0200 Subject: [PATCH] Commentaire dans la fonction --- bda/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bda/models.py b/bda/models.py index cee2c3e1..1a072eb7 100644 --- a/bda/models.py +++ b/bda/models.py @@ -176,10 +176,10 @@ class ParticipantPaidQueryset(models.QuerySet): indiquant si un participant a payé toutes ses attributions. """ - # 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): + # 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 unpaid = Attribution.objects.filter( participant=models.OuterRef("pk"), paid=False )