Peron country
This commit is contained in:
parent
c776a9abfb
commit
7cadd647b8
3 changed files with 20 additions and 4 deletions
|
@ -276,9 +276,6 @@ class Command(BaseCommand):
|
|||
'CountUnit': 'count_unit',
|
||||
'NumberUnits': 'number_of_units',
|
||||
'Remarks': 'remarks',
|
||||
|
||||
|
||||
|
||||
'RangeType': 'range_type',
|
||||
'Role': 'role',
|
||||
'RedListCategory': 'red_list_category'
|
||||
|
|
19
app/migrations/0012_alter_person_country.py
Normal file
19
app/migrations/0012_alter_person_country.py
Normal file
|
@ -0,0 +1,19 @@
|
|||
# Generated by Django 3.2.5 on 2021-11-19 05:12
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('app', '0011_auto_20211119_0354'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='person',
|
||||
name='country',
|
||||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='app.country'),
|
||||
),
|
||||
]
|
|
@ -481,7 +481,7 @@ class Person(models.Model):
|
|||
last_name = models.TextField(blank=True, null=True)
|
||||
organisation = models.TextField(blank=True, null=True)
|
||||
position = models.TextField(blank=True, null=True)
|
||||
country = models.TextField(blank=True, null=True)
|
||||
country = models.ForeignKey(Country, models.DO_NOTHING, blank=True, null=True)
|
||||
contact_email = models.TextField(blank=True, null=True) # email_1
|
||||
personal_url = models.TextField(blank=True, null=True) # url ?
|
||||
biography = models.TextField(blank=True, null=True)
|
||||
|
|
Loading…
Reference in a new issue