Added a consent field to the Person model.
- Legacy-Id: 15142
This commit is contained in:
parent
dda9c0136c
commit
874aad0322
|
@ -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, ),
|
||||
),
|
||||
]
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue