Source code for superdjango.contrib.notifications.constants

[docs]class LEVEL: """A notification level (using levels from django.contrib.messages.constants).""" DEBUG = 10 INFO = 20 SUCCESS = 25 WARNING = 30 ERROR = 40
DEFAULT_ICONS = { LEVEL.DEBUG: "fas fa-bug", LEVEL.INFO: "fas fa-info-circle", LEVEL.SUCCESS: "fas fa-check-circle", LEVEL.WARNING: "fas fa-exclamation-triangle", LEVEL.ERROR: "fas fa-exclamation-circle", } """Map levels to Font Awesome icons."""
[docs]class STAGE: """The stage of a notification.""" DRAFT = 1 QUEUED = 2 SENT = 3 ARCHIVED = 4