diff --git a/geonode/base/models.py b/geonode/base/models.py index d0cfd84d50c..1cd6815613b 100644 --- a/geonode/base/models.py +++ b/geonode/base/models.py @@ -899,7 +899,6 @@ def save(self, notify=False, *args, **kwargs): notice_type_label = '%s_approved' % self.class_name.lower() recipients = get_notification_recipients(notice_type_label, resource=self) send_notification(recipients, notice_type_label, {'resource': self}) - _notification_sent = True # Publishing Notifications Here if not _notification_sent and settings.RESOURCE_PUBLISHING: @@ -911,7 +910,6 @@ def save(self, notify=False, *args, **kwargs): notice_type_label = '%s_published' % self.class_name.lower() recipients = get_notification_recipients(notice_type_label, resource=self) send_notification(recipients, notice_type_label, {'resource': self}) - _notification_sent = True # Updated Notifications Here if not _notification_sent: @@ -919,8 +917,6 @@ def save(self, notify=False, *args, **kwargs): recipients = get_notification_recipients(notice_type_label, resource=self) send_notification(recipients, notice_type_label, {'resource': self}) - _notification_sent = False - super(ResourceBase, self).save(*args, **kwargs) self.__is_approved = self.is_approved self.__is_published = self.is_published