notifications.modelsΒΆ
Module that contains all models corresponding to the devices app.
AttributesΒΆ
ClassesΒΆ
Model representing a status a notification can have. |
|
Message Model for Notifications with Short and Optional Long Descriptions. |
|
Class for notification content with short and optional long descriptions. |
|
Notifications Model. |
|
Represents a weak or deprecated ECC curve. |
|
Represents a weak or deprecated signature algorithm. |
|
Stores global configuration for notification thresholds and behaviors. |
Module ContentsΒΆ
- class notifications.models.NotificationStatus(*args, **kwargs)[source]ΒΆ
Bases:
django.db.models.ModelModel representing a status a notification can have.
- class notifications.models.NotificationMessageModel(*args, **kwargs)[source]ΒΆ
Bases:
django.db.models.ModelMessage Model for Notifications with Short and Optional Long Descriptions.
- class notifications.models.NotificationMessage(short_description, long_description='No description provided')[source]ΒΆ
Class for notification content with short and optional long descriptions.
- Parameters:
short_description (django_stubs_ext.StrOrPromise)
long_description (django_stubs_ext.StrOrPromise)
- __str__()[source]ΒΆ
Returns a human-readable string.
- Returns:
The short description.
- Return type:
str
- class notifications.models.NotificationModel(*args, **kwargs)[source]ΒΆ
Bases:
django.db.models.ModelNotifications Model.
- class NotificationTypes(*args, **kwds)[source]ΒΆ
Bases:
django.db.models.TextChoicesSupported Notification Types.
- class NotificationSource(*args, **kwds)[source]ΒΆ
Bases:
django.db.models.TextChoicesOrigin of the Notification.
- class NotificationMessageType(*args, **kwds)[source]ΒΆ
Bases:
django.db.models.TextChoicesTypes of messages (aka. unique strings to that particular notification).
- get_notification_type_display()[source]ΒΆ
Gets the notification type as human-readable string for displaying in the front-end.
- Returns:
Human-readable string for displaying in the front-end.
- Return type:
str
- __str__()[source]ΒΆ
Returns a human-readable string.
- Returns:
The notification type to display with message description if available.
- Return type:
str
- class notifications.models.WeakECCCurve(*args, **kwargs)[source]ΒΆ
Bases:
django.db.models.ModelRepresents a weak or deprecated ECC curve.
- objects: django.db.models.Manager[WeakECCCurve][source]ΒΆ
- class notifications.models.WeakSignatureAlgorithm(*args, **kwargs)[source]ΒΆ
Bases:
django.db.models.ModelRepresents a weak or deprecated signature algorithm.
- objects: django.db.models.Manager[WeakSignatureAlgorithm][source]ΒΆ
- class notifications.models.NotificationConfig(*args, **kwargs)[source]ΒΆ
Bases:
django.db.models.ModelStores global configuration for notification thresholds and behaviors.
- objects: django.db.models.Manager[NotificationConfig][source]ΒΆ
- __str__()[source]ΒΆ
Return the human-readable name for the notification configuration.
- Return type:
str