diff --git a/src/rer/ufficiostampa/browser/send.py b/src/rer/ufficiostampa/browser/send.py index 3ff4a74..f28b704 100644 --- a/src/rer/ufficiostampa/browser/send.py +++ b/src/rer/ufficiostampa/browser/send.py @@ -228,12 +228,16 @@ def type_name(self): @property @memoize def subject(self): - value = "{type}: {title}".format( - type=self.context.portal_type == "ComunicatoStampa" - and "Comunicato Regione" # noqa - or "Invito Regione", # noqa - title=self.context.title, - ) + # value = "{type}: {title}".format( + # type=self.context.portal_type == "ComunicatoStampa" + # and "Comunicato Regione" # noqa + # or "Invito Regione", # noqa + # title=self.context.title, + # ) + if self.context.portal_type == "InvitoStampa": + value = f"Invito: {self.context.title}" + else: + value = f"Comunicato: {self.context.title}" return value def get_subscribers(self, data):