- Déjà {{ tender.siae_email_link_click_or_detail_display_count }} prestataire{{ tender.siae_email_link_click_or_detail_display_count|pluralize }} inclusif{{ tender.siae_email_link_click_or_detail_display_count|pluralize }}
- {{ tender.siae_email_link_click_or_detail_display_count|pluralize:"a,ont" }} vu le besoin de ce client.
+ Déjà {{ tender.siae_email_link_click_date_or_detail_display_date_count }} prestataire{{ tender.siae_email_link_click_date_or_detail_display_date_count|pluralize }} inclusif{{ tender.siae_email_link_click_date_or_detail_display_date_count|pluralize }}
+ {{ tender.siae_email_link_click_date_or_detail_display_date_count|pluralize:"a,ont" }} vu le besoin de ce client.
{% endif %}
diff --git a/lemarche/tenders/models.py b/lemarche/tenders/models.py
index c55587476..ca82050d7 100644
--- a/lemarche/tenders/models.py
+++ b/lemarche/tenders/models.py
@@ -570,6 +570,12 @@ def siae_detail_display_date_count(self):
def siae_email_send_date_count(self):
return self.tendersiae_set.filter(email_send_date__isnull=False).count()
+ @property
+ def siae_email_link_click_date_or_detail_display_date_count(self):
+ return self.tendersiae_set.filter(
+ Q(email_link_click_date__isnull=False) | Q(detail_display_date__isnull=False)
+ ).count()
+
@property
def siae_detail_contact_click_date_count(self):
return self.tendersiae_set.filter(detail_contact_click_date__isnull=False).count()