Skip to content

Commit

Permalink
Renaming send_in_app and send_by_email attributes;
Browse files Browse the repository at this point in the history
Adding `processed` time
  • Loading branch information
Fancien committed Oct 25, 2023
1 parent fdd6dbd commit e779ba6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 3.2.20 on 2023-10-24 06:03
# Generated by Django 3.2.20 on 2023-10-25 09:00

from django.db import migrations, models, connection
import enumchoicefield.fields
Expand Down Expand Up @@ -37,6 +37,16 @@ class Migration(migrations.Migration):
name="dismissed",
field=models.BooleanField(default=False),
),
migrations.AddField(
model_name="notification",
name="dispatch_by_email",
field=models.BooleanField(default=False),
),
migrations.AddField(
model_name="notification",
name="dispatch_in_app",
field=models.BooleanField(default=True),
),
migrations.AddField(
model_name="notification",
name="message",
Expand All @@ -49,13 +59,8 @@ class Migration(migrations.Migration):
),
migrations.AddField(
model_name="notification",
name="sent_by_email",
field=models.BooleanField(default=False),
),
migrations.AddField(
model_name="notification",
name="sent_in_app",
field=models.BooleanField(default=True),
name="processing_date",
field=models.DateField(blank=True, default=None, null=True),
),
migrations.AddField(
model_name="notificationsetting",
Expand Down
6 changes: 3 additions & 3 deletions notification/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ class Meta:
verb = EnumChoiceField(NotificationVerb)
on = models.DateTimeField(null=True, blank=True, default=None)

sent_in_app = models.BooleanField(default=True)
sent_by_email = models.BooleanField(default=False)
dispatch_in_app = models.BooleanField(default=True)
dispatch_by_email = models.BooleanField(default=False)
dismissed = models.BooleanField(default=False)

processing_date = models.DateField(default=None, null=True, blank=True)
message = models.TextField(default="")

content_type = models.ForeignKey(ContentType, on_delete=models.CASCADE)
Expand Down

0 comments on commit e779ba6

Please sign in to comment.