diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2020-10-16 10:22:02 +0100 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2020-10-16 10:22:02 +0100 |
commit | 2b11d0e43378c27b250e93e91b9bdc10346af44e (patch) | |
tree | dccbd0cd42e2400e3fa5fb363ab9fcd3616f9393 /ctrack/organisations/migrations | |
parent | 7637504292d8fd183af8f4bcbb968fc1b69cd8f7 (diff) |
added basic lead and deputy inspector to organisation model
Diffstat (limited to 'ctrack/organisations/migrations')
-rw-r--r-- | ctrack/organisations/migrations/0002_auto_20201015_1955.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/ctrack/organisations/migrations/0002_auto_20201015_1955.py b/ctrack/organisations/migrations/0002_auto_20201015_1955.py new file mode 100644 index 0000000..dcc2463 --- /dev/null +++ b/ctrack/organisations/migrations/0002_auto_20201015_1955.py @@ -0,0 +1,26 @@ +# Generated by Django 3.1.2 on 2020-10-15 19:55 + +import ctrack.organisations.models +from django.conf import settings +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + migrations.swappable_dependency(settings.AUTH_USER_MODEL), + ('organisations', '0001_initial'), + ] + + operations = [ + migrations.AddField( + model_name='organisation', + name='deputy_lead_inspector', + field=models.ForeignKey(null=True, on_delete=models.SET(ctrack.organisations.models.Organisation.get_sentinel_user), related_name='deputy_inspector', to=settings.AUTH_USER_MODEL), + ), + migrations.AddField( + model_name='organisation', + name='lead_inspector', + field=models.ForeignKey(null=True, on_delete=models.SET(ctrack.organisations.models.Organisation.get_sentinel_user), related_name='lead_inspector', to=settings.AUTH_USER_MODEL), + ), + ] |