Make status a dependent field in Person model
This commit is contained in:
parent
417bb68ffa
commit
14b7d99e9a
1 changed files with 19 additions and 0 deletions
19
app/migrations/0016_alter_person_status.py
Normal file
19
app/migrations/0016_alter_person_status.py
Normal file
|
@ -0,0 +1,19 @@
|
|||
# Generated by Django 3.2.5 on 2021-11-22 07:43
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('app', '0015_rename_country_lookup_person_country'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='person',
|
||||
name='status',
|
||||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='app.peoplestatus'),
|
||||
),
|
||||
]
|
Loading…
Reference in a new issue