From 810669e19048b4a8c0d533c6eb9b19865e0cc509 Mon Sep 17 00:00:00 2001 From: SebastienReuiller Date: Thu, 21 Nov 2024 09:53:46 +0100 Subject: [PATCH] =?UTF-8?q?fix(Activit=C3=A9s=20des=20structures):=20Corre?= =?UTF-8?q?ction=20de=20l'affichage=20des=20fiches=20structures=20sans=20t?= =?UTF-8?q?ype=20de=20prestation=20(#1532)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lemarche/siaes/models.py | 2 +- lemarche/templates/siaes/_siae_activity_content.html | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/lemarche/siaes/models.py b/lemarche/siaes/models.py index 4dc70e2a0..0e1b508ee 100644 --- a/lemarche/siaes/models.py +++ b/lemarche/siaes/models.py @@ -1582,7 +1582,7 @@ class Meta: @property def presta_type_display(self) -> str: - return choice_array_to_values(siae_constants.PRESTA_CHOICES, self.presta_type) + return choice_array_to_values(siae_constants.PRESTA_CHOICES, self.presta_type) if self.presta_type else "" @property def geo_range_pretty_display(self): diff --git a/lemarche/templates/siaes/_siae_activity_content.html b/lemarche/templates/siaes/_siae_activity_content.html index a25a9f6ce..205f8c3fa 100644 --- a/lemarche/templates/siaes/_siae_activity_content.html +++ b/lemarche/templates/siaes/_siae_activity_content.html @@ -9,11 +9,13 @@

-

- - Type(s) de prestation : - {{ activity.presta_type_display }} -

+ {% if activity.presta_type %} +

+ + Type(s) de prestation : + {{ activity.presta_type_display }} +

+ {% endif %}

Intervient sur :