def METHOD_NAME(self):
    """Save the notification and add recipients"""
    # select the receivers who have subscribed and will receive the
    # notification
    sub_receivers = self.receivers.filter(sentnotification__subscribed=True)
    # then create the message
    message = {
        "title": self.title,
        "body": self.body,
        "data": {
            "url": self.url,
            "actions_url": [action.url for action in self.actions.all()],
        },
        "icon": self.icon_url,
        "image": self.image_url,
        "badge": "/static/img/logo/monochrome/96.png",
        "tag": self.id,
        "actions": [
            {
                "action": f"action_{i}",
                "title": action.title,
                "icon": action.icon_url,
            }
            for i, action in enumerate(self.actions.all())
        ],
    }
    # finally send the message to the subscribed receivers and get the
    # success value to know if the task has been successfully launched
    send_webpush_notification(sub_receivers, message)
    # update the notification to register it has been sent
    self.sent = True
    self.save()