Skip to content

Commit

Permalink
✨ Add config option for recipients for failed notif emails
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenbal committed Jul 1, 2022
1 parent 43779a1 commit c870aec
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Generated by Django 3.2.13 on 2022-06-28 12:29

import django.contrib.postgres.fields
from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("notifications", "0010_auto_20220627_1340"),
]

operations = [
migrations.AddField(
model_name="notificationsconfig",
name="failed_notification_admin_recipients",
field=django.contrib.postgres.fields.ArrayField(
base_field=models.EmailField(max_length=254),
blank=True,
default=list,
help_text="Komma-gescheiden lijst van emailadressen die een email moeten ontvangen als het niet gelukt is om een notificatie te versturen (na de laatste retry).",
size=None,
verbose_name="failed notification email admin recipients",
),
),
]
10 changes: 10 additions & 0 deletions vng_api_common/notifications/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,16 @@ class NotificationsConfig(ClientConfig):
help_text=_("an upper limit to the exponential backoff time."),
default=48,
)
failed_notification_admin_recipients = ArrayField(
models.EmailField(max_length=254),
verbose_name=_("failed notification email admin recipients"),
help_text=_(
"Komma-gescheiden lijst van emailadressen die een email moeten ontvangen "
"als het niet gelukt is om een notificatie te versturen (na de laatste retry)."
),
default=list,
blank=True,
)

class Meta:
verbose_name = _("Notificatiescomponentconfiguratie")
Expand Down

0 comments on commit c870aec

Please sign in to comment.