from consts.notification_type import NotificationType
from helpers.model_to_dict import ModelToDict
from notifications.base_notification import BaseNotification


class AllianceSelectionNotification(BaseNotification):

    def __init__(self, event):
        self.event = event
        self._event_feed = event.key_name
        self._district_feed = event.event_district_abbrev

    @property
    def _type(self):
        return NotificationType.ALLIANCE_SELECTION

    def _build_dict(self):
        data = {}
        data['message_type'] = NotificationType.type_names[self._type]
        data['message_data'] = {}
        data['message_data']['event'] = ModelToDict.eventConverter(self.event)
        return data

from consts.notification_type import NotificationType
from helpers.model_to_dict import ModelToDict
from notifications.base_notification import BaseNotification


class AllianceSelectionNotification(BaseNotification):

    def __init__(self, event):
        self.event = event
        self._event_feed = event.key_name
        self._district_feed = event.event_district_abbrev

    @property
    def _type(self):
        return NotificationType.ALLIANCE_SELECTION

    def _build_dict(self):
        data = {}
        data['message_type'] = NotificationType.type_names[self._type]
        data['message_data'] = {}
        data['message_data']['event_name'] = self.event.name
        data['message_data']['event_key'] = self.event.key_name
        data['message_data']['event'] = ModelToDict.eventConverter(self.event)
        return data

Add event name and key to alliance selection notifications
Add event name and key to alliance selection notifications

This info is already included in 'event', but adding for consistency