diff --git a/openrepairplatform/templates/organization_fees.html b/openrepairplatform/templates/organization_fees.html index cc2b6b54..c4c2dd92 100644 --- a/openrepairplatform/templates/organization_fees.html +++ b/openrepairplatform/templates/organization_fees.html @@ -18,8 +18,7 @@

Cotisations

{% endif %} -{% comment %}

Total = {{total_fees|currency}}

{% endcomment %} -

Total = {{total_fees}}

+

Total = {{total_fees|currency}}

Télécharger le résultat : CSV diff --git a/openrepairplatform/user/models.py b/openrepairplatform/user/models.py index ae549d1b..1a990bfa 100644 --- a/openrepairplatform/user/models.py +++ b/openrepairplatform/user/models.py @@ -321,6 +321,10 @@ class Membership(models.Model): def __str__(self): return f"{self.user}-{self.organization}" + def get_absolute_url(self): + # TODO: check that it is the right link to provide + return reverse("organization_fees", kwargs={"orga_slug": self.organization.slug}) + def update_first_payment(self): """ If a new fee linked to current membership is add after the date limit