calingen.constants
¶
App-specific constants, that are used throughout the application.
Module Contents¶
Classes¶
The single source of truth for different types of events. |
- class calingen.constants.EventCategory¶
Bases:
django.db.models.TextChoices
The single source of truth for different types of events.
Throughout the app, there are different sources for events, most notably the app’s
Event
instances and the events as provided by theEventProvider
implementations.All these sources must provide compatible event categories.
Notes
Provides the accepted choices for
calingen.models.event.Event.category
.- ANNUAL_ANNIVERSARY¶
- HOLIDAY¶