Parcourir la source

fix affichage cotisations/contributions

Élie Bouttier il y a 7 ans
Parent
commit
791396d0d1

+ 2 - 2
adhesions/templates/adhesions/_adhesion_detail.html

@@ -10,8 +10,8 @@
         <p>Adhérent : <a href="{{ adhesion.get_adherent_detail_url }}">{{ adhesion.get_adherent_name }}</a></p>
         <p>Adhérent : <a href="{{ adhesion.get_adherent_detail_url }}">{{ adhesion.get_adherent_name }}</a></p>
         {% endif %}
         {% endif %}
         <p>Numéro d’adhérent : ADT{{ adhesion.id }}</p>
         <p>Numéro d’adhérent : ADT{{ adhesion.id }}</p>
-        {% if adhesion.membership.active %}
-        <p>Cotisation : {{ adhesion.membership.display }}</p>
+        {% if adhesion.membership.is_active %}
+        <p>Cotisation : {{ adhesion.membership }}</p>
         {% else %}
         {% else %}
         <p>Pas de cotisation.</p>
         <p>Pas de cotisation.</p>
         {% endif %}
         {% endif %}

+ 1 - 1
services/templates/services/service_detail.html

@@ -17,7 +17,7 @@
         <p>Identifiant du service : #{{ service.id }}</p>
         <p>Identifiant du service : #{{ service.id }}</p>
         <p>Responsable : {{ service.adhesion }}</p>
         <p>Responsable : {{ service.adhesion }}</p>
         {% if service.contribution %}
         {% if service.contribution %}
-        <p>Contribution : {{ service.contribution.display }}</p>
+        <p>Contribution : {{ service.contribution }}</p>
         {% else %}
         {% else %}
         <p>Contribution : pas de contribution</p>
         <p>Contribution : pas de contribution</p>
         {% endif %}
         {% endif %}