aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/caf/migrations
diff options
context:
space:
mode:
Diffstat (limited to 'ctrack/caf/migrations')
-rw-r--r--ctrack/caf/migrations/0003_auto_20200221_2104.py4
-rw-r--r--ctrack/caf/migrations/0017_auto_20200304_1925.py32
2 files changed, 34 insertions, 2 deletions
diff --git a/ctrack/caf/migrations/0003_auto_20200221_2104.py b/ctrack/caf/migrations/0003_auto_20200221_2104.py
index 4726a28..9f5d6ae 100644
--- a/ctrack/caf/migrations/0003_auto_20200221_2104.py
+++ b/ctrack/caf/migrations/0003_auto_20200221_2104.py
@@ -24,10 +24,10 @@ class Migration(migrations.Migration):
('name', models.CharField(max_length=256)),
('description', models.TextField(max_length=1000)),
('caf', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='caf.CAF')),
- ('organisation', models.ForeignKey(on_delete=models.SET(ctrack.caf.models.EssentialService.get_sentinel_org), to='organisations.Organisation')),
+ ('organisation', models.ForeignKey(on_delete=models.SET(ctrack.caf.models.ApplicableSystem.get_sentinel_org), to='organisations.Organisation')),
],
options={
- 'verbose_name': 'Essential Service',
+ 'verbose_name': 'ApplicableSystem',
},
),
]
diff --git a/ctrack/caf/migrations/0017_auto_20200304_1925.py b/ctrack/caf/migrations/0017_auto_20200304_1925.py
new file mode 100644
index 0000000..198558a
--- /dev/null
+++ b/ctrack/caf/migrations/0017_auto_20200304_1925.py
@@ -0,0 +1,32 @@
+# Generated by Django 2.2.9 on 2020-03-04 19:25
+
+import ctrack.caf.models
+from django.db import migrations, models
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('organisations', '0005_auto_20200303_0727'),
+ ('caf', '0016_auto_20200303_0825'),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='ApplicableSystem',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('name', models.CharField(max_length=256)),
+ ('description', models.TextField(max_length=1000)),
+ ('caf', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='applicable_systems', to='caf.CAF')),
+ ('organisation', models.ForeignKey(on_delete=models.SET(ctrack.caf.models.ApplicableSystem.get_sentinel_org), to='organisations.Organisation')),
+ ],
+ options={
+ 'verbose_name': 'Applicable System',
+ },
+ ),
+ migrations.DeleteModel(
+ name='EssentialService',
+ ),
+ ]