Skip to content

Commit

Permalink
enable unsubscribe on newsletter
Browse files Browse the repository at this point in the history
  • Loading branch information
newearthmartin committed Oct 7, 2024
1 parent f0622ae commit 24f1b81
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions newsletter/migrations/0010_newsletter_enable_unsubscribe.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 5.1.1 on 2024-10-07 20:26

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('newsletter', '0009_newsletter_subscription_generator_class'),
]

operations = [
migrations.AddField(
model_name='newsletter',
name='enable_unsubscribe',
field=models.BooleanField(default=True),
),
]
1 change: 1 addition & 0 deletions newsletter/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ class Newsletter(models.Model):
)

subscription_generator_class = models.CharField(max_length=200, blank=True, null=True)
enable_unsubscribe = models.BooleanField(default=True)

visible = models.BooleanField(
default=True, verbose_name=_('visible'), db_index=True
Expand Down

0 comments on commit 24f1b81

Please sign in to comment.