Make GMBA functions a drop down
This commit is contained in:
parent
e26c0108a0
commit
534033e2df
|
@ -0,0 +1,18 @@
|
|||
# Generated by Django 3.2.5 on 2021-11-28 06:26
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('app', '0033_auto_20211128_0551'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='person',
|
||||
name='gmba_function',
|
||||
field=models.TextField(blank=True, choices=[('', ''), ('Involved scientist', 'Involved scientist'), ('Involved scientist\nSteering committee', 'Involved scientist\nSteering committee'), ('Network', 'Network'), ('Newsletter only', 'Newsletter only'), ('Steering committee\nInvolved scientist', 'Steering committee\nInvolved scientist')], null=True),
|
||||
),
|
||||
]
|
|
@ -532,6 +532,18 @@ class Person(models.Model):
|
|||
('Mr', 'Mr'),
|
||||
('Mr.', 'Mr.'),
|
||||
)
|
||||
GMBA_FUNCTION_CHOICES = (
|
||||
('', ''),
|
||||
('Involved scientist', 'Involved scientist'),
|
||||
('''Involved scientist
|
||||
Steering committee''', '''Involved scientist
|
||||
Steering committee'''),
|
||||
('Network', 'Network'),
|
||||
('Newsletter only', 'Newsletter only'),
|
||||
('''Steering committee
|
||||
Involved scientist''', '''Steering committee
|
||||
Involved scientist''')
|
||||
)
|
||||
id = models.AutoField(primary_key=True)
|
||||
source_id = models.IntegerField(blank=True, null=True)
|
||||
title = models.CharField(blank=True, null=True, max_length=255)
|
||||
|
@ -555,7 +567,7 @@ class Person(models.Model):
|
|||
field_of_expertise = models.TextField(blank=True, null=True)
|
||||
status = models.ForeignKey(PeopleStatus, models.DO_NOTHING, blank=True, null=True, to_field='id')
|
||||
entry_date = models.TextField(blank=True, null=True)
|
||||
gmba_function = models.TextField(blank=True, null=True)
|
||||
gmba_function = models.TextField(blank=True, null=True, choices=GMBA_FUNCTION_CHOICES)
|
||||
news_letter = models.BooleanField(default=False)
|
||||
country = models.ForeignKey(Country, models.DO_NOTHING, blank=True, null=True, to_field='id')
|
||||
organization = models.ForeignKey(Organization, models.DO_NOTHING, blank=True, null=True)
|
||||
|
|
Loading…
Reference in New Issue