feat(people): Add discipline and themes to Person

See #1
This commit is contained in:
James Graham
2020-02-25 11:19:46 +00:00
parent d733b6db63
commit 39127cf972
5 changed files with 103 additions and 4 deletions

View File

@@ -0,0 +1,39 @@
# Generated by Django 2.2.10 on 2020-02-25 11:12
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('people', '0013_person_role'),
]
operations = [
migrations.CreateModel(
name='Discipline',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=255)),
('code', models.CharField(blank=True, max_length=15)),
],
),
migrations.CreateModel(
name='Theme',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=255)),
],
),
migrations.AddField(
model_name='person',
name='discipline',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='people', to='people.Discipline'),
),
migrations.AddField(
model_name='person',
name='themes',
field=models.ManyToManyField(blank=True, related_name='people', to='people.Theme'),
),
]