Skip to content

Commit 874aad0

Browse files
committed
Added a consent field to the Person model.
- Legacy-Id: 15142
1 parent dda9c01 commit 874aad0

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

ietf/person/migrations/0003_auto_20180504_1519.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,14 @@ class Migration(migrations.Migration):
9797
name='person',
9898
field=ietf.utils.models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to='person.Person'),
9999
),
100+
migrations.AddField(
101+
model_name='historicalperson',
102+
name='consent',
103+
field=models.BooleanField(verbose_name=b'I hereby give my consent to the use of the personal details I have provided within the IETF Datatracker', null=True, default=None, ),
104+
),
105+
migrations.AddField(
106+
model_name='person',
107+
name='consent',
108+
field=models.BooleanField(verbose_name=b'I hereby give my consent to the use of the personal details I have provided within the IETF Datatracker', null=True, default=None, ),
109+
),
100110
]

ietf/person/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ class Person(models.Model):
4444
photo = models.ImageField(storage=NoLocationMigrationFileSystemStorage(), upload_to=settings.PHOTOS_DIRNAME, blank=True, default=None)
4545
photo_thumb = models.ImageField(storage=NoLocationMigrationFileSystemStorage(), upload_to=settings.PHOTOS_DIRNAME, blank=True, default=None)
4646
name_from_draft = models.CharField("Full Name (from submission)", null=True, max_length=255, editable=False, help_text="Name as found in a draft submission.")
47+
consent = models.BooleanField("I hereby give my consent to the use of the personal details I have provided (photo, bio, name, email) within the IETF Datatracker", null=True, default=None)
4748

4849
def __unicode__(self):
4950
return self.plain_name()

0 commit comments

Comments
 (0)