Fix #262
This commit is contained in:
parent
eef4f5639c
commit
49a8f4b306
@ -1151,7 +1151,7 @@ class Event(models.Model):
|
|||||||
|
|
||||||
def get_contributor_message(self):
|
def get_contributor_message(self):
|
||||||
msg = Message.objects.filter(related_event=self.pk, email__isnull=False, closed=False).first()
|
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()
|
msg = Message.objects.filter(related_event__in=self.other_versions.get_duplicated(), email__isnull=False, closed=False).first()
|
||||||
return msg
|
return msg
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user