<filename>lego/apps/notifications/constants.py
EMAIL = "email"
PUSH = "push"

CHANNELS = [EMAIL, PUSH]

CHANNEL_CHOICES = [(channel, channel) for channel in CHANNELS]

# Generics
WEEKLY_MAIL = "weekly_mail"

# Event
EVENT_BUMP = "event_bump"
EVENT_ADMIN_REGISTRATION = "event_admin_registration"
EVENT_ADMIN_UNREGISTRATION = "event_admin_unregistration"
EVENT_PAYMENT_OVERDUE = "event_payment_overdue"
EVENT_PAYMENT_OVERDUE_CREATOR = "event_payment_overdue_creator"

# Meeting
MEETING_INVITE = "meeting_invite"

# Penalty
PENALTY_CREATION = "penalty_creation"

# Restricted Mail
RESTRICTED_MAIL_SENT = "restricted_mail_sent"

# Company
COMPANY_INTEREST_CREATED = "company_interest_created"

# Survey
SURVEY_CREATED = "survey_created"

# Comment
COMMENT = "comment"
COMMENT_REPLY = "comment_reply"

# Notifications
ANNOUNCEMENT = "announcement"

# Followers
REGISTRATION_REMINDER = "registration_reminder"

NOTIFICATION_TYPES = [
    WEEKLY_MAIL,
    EVENT_BUMP,
    EVENT_ADMIN_REGISTRATION,
    EVENT_ADMIN_UNREGISTRATION,
    EVENT_PAYMENT_OVERDUE,
    EVENT_PAYMENT_OVERDUE_CREATOR,
    MEETING_INVITE,
    PENALTY_CREATION,
    RESTRICTED_MAIL_SENT,
    COMPANY_INTEREST_CREATED,
    COMMENT,
    COMMENT_REPLY,
    ANNOUNCEMENT,
    SURVEY_CREATED,
    REGISTRATION_REMINDER,
]

NOTIFICATION_CHOICES = [
    (notification, notification) for notification in NOTIFICATION_TYPES
]

<filename>lego/apps/notifications/constants.py
EMAIL = "email"
PUSH = "push"

CHANNELS = [EMAIL, PUSH]

CHANNEL_CHOICES = [(channel, channel) for channel in CHANNELS]

# Generics
WEEKLY_MAIL = "weekly_mail"

# Event
EVENT_BUMP = "event_bump"
EVENT_ADMIN_REGISTRATION = "event_admin_registration"
EVENT_ADMIN_UNREGISTRATION = "event_admin_unregistration"
EVENT_PAYMENT_OVERDUE = "event_payment_overdue"
EVENT_PAYMENT_OVERDUE_CREATOR = "event_payment_overdue_creator"

# Meeting
MEETING_INVITE = "meeting_invite"

# Penalty
PENALTY_CREATION = "penalty_creation"

# Restricted Mail
RESTRICTED_MAIL_SENT = "restricted_mail_sent"

# Company
COMPANY_INTEREST_CREATED = "company_interest_created"

# Survey
SURVEY_CREATED = "survey_created"

# Comment
COMMENT = "comment"
COMMENT_REPLY = "comment_reply"

# Notifications
ANNOUNCEMENT = "announcement"

# Followers
REGISTRATION_REMINDER = "registration_reminder"

NOTIFICATION_TYPES = [
    WEEKLY_MAIL,
    EVENT_BUMP,
    EVENT_ADMIN_REGISTRATION,
    EVENT_ADMIN_UNREGISTRATION,
    EVENT_PAYMENT_OVERDUE,
    EVENT_PAYMENT_OVERDUE_CREATOR,
    MEETING_INVITE,
    PENALTY_CREATION,
    RESTRICTED_MAIL_SENT,
    COMPANY_INTEREST_CREATED,
    COMMENT,
    COMMENT_REPLY,
    ANNOUNCEMENT,
    SURVEY_CREATED,
    REGISTRATION_REMINDER,
]

NOTIFICATION_CHOICES = [
    (notification, notification) for notification in NOTIFICATION_TYPES
]

# Generics # Event # Meeting # Penalty # Restricted Mail # Company # Survey # Comment # Notifications # Followers