diff --git a/config/settings/base.py b/config/settings/base.py index 6bd8d14a4..12bbc6937 100644 --- a/config/settings/base.py +++ b/config/settings/base.py @@ -861,6 +861,7 @@ "from lemarche.utils import constants", "from lemarche.siaes import constants as siae_constants", "from lemarche.tenders import constants as tender_constants", + "from lemarche.utils.apis import api_brevo, api_mailjet", ] FORM_RENDERER = "django.forms.renderers.TemplatesSetting" diff --git a/lemarche/siaes/models.py b/lemarche/siaes/models.py index f67140c1d..fe1c8d6ca 100644 --- a/lemarche/siaes/models.py +++ b/lemarche/siaes/models.py @@ -26,6 +26,7 @@ from lemarche.utils.constants import DEPARTMENTS_PRETTY, RECALCULATED_FIELD_HELP_TEXT, REGIONS_PRETTY from lemarche.utils.data import round_by_base from lemarche.utils.fields import ChoiceArrayField +from lemarche.utils.urls import get_admin_url_object def get_region_filter(perimeter): @@ -1230,6 +1231,9 @@ def siae_user_requests_pending_count(self): def get_absolute_url(self): return reverse("siae:detail", kwargs={"slug": self.slug}) + def get_admin_url(self): + return get_admin_url_object(self) + def set_super_badge(self): update_fields_list = ["super_badge"] siae_super_badge_current_value = self.super_badge diff --git a/lemarche/templates/siaes/_detail_admin_extra_info.html b/lemarche/templates/siaes/_detail_admin_extra_info.html index 55cb3d9f9..a72b224ba 100644 --- a/lemarche/templates/siaes/_detail_admin_extra_info.html +++ b/lemarche/templates/siaes/_detail_admin_extra_info.html @@ -24,7 +24,7 @@