This commit is contained in:
Jean-Marie Favreau 2024-12-29 10:35:25 +01:00
parent eef4f5639c
commit 49a8f4b306

View File

@ -1151,7 +1151,7 @@ class Event(models.Model):
def get_contributor_message(self):
msg = Message.objects.filter(related_event=self.pk, email__isnull=False, closed=False).first()
if msg is None:
if msg is None and self.other_versions:
msg = Message.objects.filter(related_event__in=self.other_versions.get_duplicated(), email__isnull=False, closed=False).first()
return msg