From 7a8e27d0a3e08b03576ec4a0bf6a3c8fce6edf9f Mon Sep 17 00:00:00 2001 From: Qwann Date: Fri, 10 Jun 2016 18:01:03 +0200 Subject: [PATCH] affiche maintenant le prix dans dans l'interface admin, quand on clique sur un particpant --- bda/admin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bda/admin.py b/bda/admin.py index 8af71d00..07d082d1 100644 --- a/bda/admin.py +++ b/bda/admin.py @@ -38,6 +38,7 @@ class ParticipantAdmin(admin.ModelAdmin): actions = ['send_attribs',] actions_on_bottom = True list_per_page = 400 + readonly_fields = ("total",) def send_attribs(self, request, queryset): for member in queryset.all():