Add link between corporation and its parent
This commit is contained in:
parent
d45742d88f
commit
73e3680da0
3 changed files with 22 additions and 2 deletions
19
stages/migrations/0006_corporation_parent.py
Normal file
19
stages/migrations/0006_corporation_parent.py
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
# Generated by Django 1.9.1 on 2016-01-18 12:23
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('stages', '0005_extended_contact_email'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='corporation',
|
||||
name='parent',
|
||||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL,
|
||||
to='stages.Corporation', verbose_name='Institution mère'),
|
||||
),
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue