diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2020-10-21 17:08:24 +0100 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2020-10-21 17:08:35 +0100 |
commit | ecd2c19b265e3974707da0d9b8e260749dcf4a9f (patch) | |
tree | a47b8e820e98e39fca7108c1f98bc500bf0c98d9 /ctrack/organisations/migrations/0002_auto_20201021_1551.py | |
parent | 07c741c785761cfa0e9895e35ba7e1f1549ce676 (diff) |
renamed a field in a model to date and look what I need! new migrations and fixed tests
Diffstat (limited to 'ctrack/organisations/migrations/0002_auto_20201021_1551.py')
-rw-r--r-- | ctrack/organisations/migrations/0002_auto_20201021_1551.py | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/ctrack/organisations/migrations/0002_auto_20201021_1551.py b/ctrack/organisations/migrations/0002_auto_20201021_1551.py new file mode 100644 index 0000000..b9afa58 --- /dev/null +++ b/ctrack/organisations/migrations/0002_auto_20201021_1551.py @@ -0,0 +1,55 @@ +# Generated by Django 3.1.2 on 2020-10-21 15:51 + +import ctrack.organisations.models +from django.conf import settings +import django.contrib.auth +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + initial = True + + 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), + ), + migrations.AddField( + model_name='organisation', + name='submode', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='organisations.submode'), + ), + migrations.AddField( + model_name='incidentreport', + name='organisation', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='organisations.organisation'), + ), + migrations.AddField( + model_name='incidentreport', + name='reporting_person', + field=models.ForeignKey(on_delete=models.SET(django.contrib.auth.get_user_model), to='organisations.person', verbose_name='Person reporting the incident'), + ), + migrations.AddField( + model_name='address', + name='organisation', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='addresses', to='organisations.organisation'), + ), + migrations.AddField( + model_name='address', + name='type', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='organisations.addresstype', verbose_name='Address Type'), + ), + ] |