From 874aad0322150919908f96eb4e9ae7391188b97d Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Tue, 8 May 2018 16:24:26 +0000 Subject: [PATCH] Added a consent field to the Person model. - Legacy-Id: 15142 --- ietf/person/migrations/0003_auto_20180504_1519.py | 10 ++++++++++ ietf/person/models.py | 1 + 2 files changed, 11 insertions(+) diff --git a/ietf/person/migrations/0003_auto_20180504_1519.py b/ietf/person/migrations/0003_auto_20180504_1519.py index 1bbedbbec..8fb4531bf 100644 --- a/ietf/person/migrations/0003_auto_20180504_1519.py +++ b/ietf/person/migrations/0003_auto_20180504_1519.py @@ -97,4 +97,14 @@ class Migration(migrations.Migration): name='person', 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'), ), + migrations.AddField( + model_name='historicalperson', + name='consent', + 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, ), + ), + migrations.AddField( + model_name='person', + name='consent', + 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, ), + ), ] diff --git a/ietf/person/models.py b/ietf/person/models.py index 674d6fc5f..83cc5de49 100644 --- a/ietf/person/models.py +++ b/ietf/person/models.py @@ -44,6 +44,7 @@ class Person(models.Model): photo = models.ImageField(storage=NoLocationMigrationFileSystemStorage(), upload_to=settings.PHOTOS_DIRNAME, blank=True, default=None) photo_thumb = models.ImageField(storage=NoLocationMigrationFileSystemStorage(), upload_to=settings.PHOTOS_DIRNAME, blank=True, default=None) 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.") + 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) def __unicode__(self): return self.plain_name()