Skip to content

Commit

Permalink
add bulk_notifs in EmailSendTrackKind enum, plus its migration file
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentporte committed Nov 28, 2024
1 parent 27cfd2a commit 6587d62
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
1 change: 1 addition & 0 deletions lacommunaute/notification/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ class EmailSentTrackKind(models.TextChoices):
ONBOARDING = "onboarding", "Onboarding d'un nouvel utilisateur"
PENDING_TOPIC = "pending_topic", "Question sans réponse"
MAGIC_LINK = "magic_link", "Lien de connexion magique"
BULK_NOTIFS = "bulk_notifs", "Notifications groupées"


class NotificationDelay(models.TextChoices):
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Generated by Django 5.0.9 on 2024-11-27 13:57

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("notification", "0010_alter_emailsenttrack_kind_alter_notification_kind"),
]

operations = [
migrations.AlterField(
model_name="emailsenttrack",
name="kind",
field=models.CharField(
choices=[
("first_reply", "Première réponse à un sujet"),
("following_replies", "Réponses suivantes"),
("onboarding", "Onboarding d'un nouvel utilisateur"),
("pending_topic", "Question sans réponse"),
("magic_link", "Lien de connexion magique"),
("bulk_notifs", "Notifications groupées"),
],
max_length=20,
verbose_name="type",
),
),
migrations.AlterField(
model_name="notification",
name="kind",
field=models.CharField(
choices=[
("first_reply", "Première réponse à un sujet"),
("following_replies", "Réponses suivantes"),
("onboarding", "Onboarding d'un nouvel utilisateur"),
("pending_topic", "Question sans réponse"),
("magic_link", "Lien de connexion magique"),
("bulk_notifs", "Notifications groupées"),
],
max_length=20,
verbose_name="type",
),
),
]

0 comments on commit 6587d62

Please sign in to comment.