loefsys.events.models.choices module
Module containing all choice enums for the events app.
- class loefsys.events.models.choices.EventCategories(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
IntegerChoices
Categories for an event.
Events can be filtered based on their category. This enum is used for the filtering.
- OTHER = 0
Used when other categories aren’t appropriate.
- ALUMNI = 1
Used for events for ex-members of the association.
- ASSOCIATION = 2
Used for events related to the board.
Examples are general meetings, or the ‘friettafelmoment’.
- COMPETITION = 3
Used for events specifically for sailing competitions.
Examples are NESTOR, regatta’s, and more.
- LEISURE = 4
Used for entertainment events.
Examples are ‘borrels’, parties, game activities, and more.
- SAILING = 5
Used for events directly involving sailing.
- TRAINING = 6
Used for events meant to train a participant
- class loefsys.events.models.choices.RegistrationStatus(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
IntegerChoices
The various statuses for the registration.
- ACTIVE = 0
The registration is active and is neither cancelled nor queued.
- QUEUED = 1
The registration is queued as the maximum capacity for the event is reached.
- CANCELLED_NOFINE = 2
The registration is cancelled and no fine is applied.
- CANCELLED_FINE = 3
The registration is cancelled and a fine is applied.