Skip to content

Commit 6599492

Browse files
committed
Added opt-out field to userprofile
1 parent 88e77b9 commit 6599492

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Generated by Django 3.2.25 on 2024-12-16 12:59
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('accounts', '0032_alter_userprofile_shares_car'),
10+
]
11+
12+
operations = [
13+
migrations.AddField(
14+
model_name='userprofile',
15+
name='orderround_mail_optout',
16+
field=models.BooleanField(default=False, help_text='Je krijgt geen e-mail meer wanneer een bestelronde wordt geopend', verbose_name='Opt-out van bestelronde e-mails'),
17+
),
18+
]

webapp/accounts/models.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,12 @@ class Meta:
8787
max_length=300,
8888
)
8989

90+
orderround_mail_optout = models.BooleanField(
91+
default=False,
92+
verbose_name="Opt-out van bestelronde e-mails",
93+
help_text="Je krijgt geen e-mail meer wanneer een bestelronde wordt geopend",
94+
)
95+
9096
def __str__(self):
9197
return "Profile for user: %s" % self.user
9298

0 commit comments

Comments
 (0)