events: fix transport not allowing blank values
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
8d49705c87
commit
cfe2648b62
|
@ -383,6 +383,7 @@ class Migration(migrations.Migration):
|
||||||
models.ManyToManyField(
|
models.ManyToManyField(
|
||||||
help_text="Select which transports should be used to notify the user. If none are selected, the notification will only be shown in the authentik UI.",
|
help_text="Select which transports should be used to notify the user. If none are selected, the notification will only be shown in the authentik UI.",
|
||||||
to="authentik_events.NotificationTransport",
|
to="authentik_events.NotificationTransport",
|
||||||
|
blank=True,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|
|
@ -481,6 +481,7 @@ class NotificationRule(PolicyBindingModel):
|
||||||
"selected, the notification will only be shown in the authentik UI."
|
"selected, the notification will only be shown in the authentik UI."
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
blank=True,
|
||||||
)
|
)
|
||||||
severity = models.TextField(
|
severity = models.TextField(
|
||||||
choices=NotificationSeverity.choices,
|
choices=NotificationSeverity.choices,
|
||||||
|
|
|
@ -22969,7 +22969,6 @@ components:
|
||||||
- group_obj
|
- group_obj
|
||||||
- name
|
- name
|
||||||
- pk
|
- pk
|
||||||
- transports
|
|
||||||
NotificationRuleRequest:
|
NotificationRuleRequest:
|
||||||
type: object
|
type: object
|
||||||
description: NotificationRule Serializer
|
description: NotificationRule Serializer
|
||||||
|
@ -22998,7 +22997,6 @@ components:
|
||||||
and shown to. If left empty, Notification won't ben sent.
|
and shown to. If left empty, Notification won't ben sent.
|
||||||
required:
|
required:
|
||||||
- name
|
- name
|
||||||
- transports
|
|
||||||
NotificationTransport:
|
NotificationTransport:
|
||||||
type: object
|
type: object
|
||||||
description: NotificationTransport Serializer
|
description: NotificationTransport Serializer
|
||||||
|
|
Reference in New Issue