Skip to content

Commit c0a39a1

Browse files
committed
Add paper_signatures_enabled field to PetitionTemplate Model
This will allow in the future to set this in a template so that all petition using this template inherit from the setting.
1 parent 41268e1 commit c0a39a1

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-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 on 2023-01-06 14:53
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('petition', '0016_signature_uses_phone_number_field'),
10+
]
11+
12+
operations = [
13+
migrations.AddField(
14+
model_name='petitiontemplate',
15+
name='paper_signatures_enabled',
16+
field=models.BooleanField(default=False),
17+
),
18+
]

pytition/petition/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,7 @@ class PetitionTemplate(models.Model):
537537
confirmation_email_reply = models.EmailField(max_length=100, blank=True)
538538
use_custom_email_settings = models.BooleanField(default=False)
539539
has_share_buttons = models.BooleanField(default=True)
540+
paper_signatures_enabled = models.BooleanField(default=False)
540541

541542
def __str__(self):
542543
return self.name

0 commit comments

Comments
 (0)