Make country_lookup the Country field
This commit is contained in:
parent
b21a465e47
commit
b6a45c9677
|
@ -0,0 +1,19 @@
|
||||||
|
# Generated by Django 3.2.5 on 2021-11-22 07:15
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
import django.db.models.deletion
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('app', '0013_remove_person_country'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='person',
|
||||||
|
name='country_lookup',
|
||||||
|
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='app.country'),
|
||||||
|
),
|
||||||
|
]
|
|
@ -500,7 +500,7 @@ class Person(models.Model):
|
||||||
entry_date = models.TextField(blank=True, null=True)
|
entry_date = models.TextField(blank=True, null=True)
|
||||||
gmba_function = models.TextField(blank=True, null=True)
|
gmba_function = models.TextField(blank=True, null=True)
|
||||||
news_letter = models.BooleanField(default=False)
|
news_letter = models.BooleanField(default=False)
|
||||||
country_lookup = models.TextField(blank=True, null=True)
|
country_lookup = models.ForeignKey(Country, models.DO_NOTHING, blank=True, null=True)
|
||||||
organization = models.ForeignKey(Organization, models.DO_NOTHING, blank=True, null=True)
|
organization = models.ForeignKey(Organization, models.DO_NOTHING, blank=True, null=True)
|
||||||
birds = models.BooleanField(default=False)
|
birds = models.BooleanField(default=False)
|
||||||
mammals = models.BooleanField(default=False)
|
mammals = models.BooleanField(default=False)
|
||||||
|
|
Loading…
Reference in New Issue