From 9661751df2c8a3cc1874c77297d86706d21cf56a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20P=C3=A9pin?= Date: Sun, 6 Oct 2019 10:32:18 +0200 Subject: [PATCH] Fix crash on /bda/revente//manage `annotate_paid` method is a method of the Participant object manager, not the Participant class itself --- bda/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bda/views.py b/bda/views.py index 0c4d7665..1ead6a43 100644 --- a/bda/views.py +++ b/bda/views.py @@ -381,7 +381,7 @@ def revente_manage(request, tirage_id): - Annulation d'une revente après que le tirage a eu lieu """ tirage = get_object_or_404(Tirage, id=tirage_id) - participant, created = Participant.annotate_paid().get_or_create( + participant, created = Participant.objects.annotate_paid().get_or_create( user=request.user, tirage=tirage )