diff --git a/app/migrations/0034_alter_person_gmba_function.py b/app/migrations/0034_alter_person_gmba_function.py new file mode 100644 index 0000000..087acf6 --- /dev/null +++ b/app/migrations/0034_alter_person_gmba_function.py @@ -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), + ), + ] diff --git a/app/models.py b/app/models.py index d5a8f31..2b892cc 100644 --- a/app/models.py +++ b/app/models.py @@ -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)