aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/organisations/migrations
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-01-25 14:39:26 +0000
committerMatthew Lemon <lemon@matthewlemon.com>2020-01-25 14:39:26 +0000
commit5a61862454339b61bd4ab50399ac1d683fb2b564 (patch)
tree5e67cc44dffad34fd6288fd7200b095f2e049544 /ctrack/organisations/migrations
parentc488ad804bcc7c3febee3bea2089b86bbe419bbb (diff)
Better admin
Diffstat (limited to '')
-rw-r--r--ctrack/organisations/migrations/0009_auto_20200124_1623.py53
-rw-r--r--ctrack/organisations/migrations/0010_auto_20200124_1629.py23
2 files changed, 76 insertions, 0 deletions
diff --git a/ctrack/organisations/migrations/0009_auto_20200124_1623.py b/ctrack/organisations/migrations/0009_auto_20200124_1623.py
new file mode 100644
index 0000000..0b90de4
--- /dev/null
+++ b/ctrack/organisations/migrations/0009_auto_20200124_1623.py
@@ -0,0 +1,53 @@
+# Generated by Django 2.2.9 on 2020-01-24 16:23
+
+from django.db import migrations, models
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('organisations', '0008_auto_20200123_1657'),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='Role',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('name', models.CharField(max_length=100)),
+ ],
+ ),
+ migrations.AlterField(
+ model_name='address',
+ name='county',
+ field=models.CharField(blank=True, max_length=100),
+ ),
+ migrations.AlterField(
+ model_name='address',
+ name='line2',
+ field=models.CharField(blank=True, max_length=255),
+ ),
+ migrations.AlterField(
+ model_name='address',
+ name='line3',
+ field=models.CharField(blank=True, max_length=255),
+ ),
+ migrations.AlterField(
+ model_name='address',
+ name='other_details',
+ field=models.CharField(blank=True, max_length=255),
+ ),
+ migrations.CreateModel(
+ name='Person',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('name', models.CharField(max_length=255)),
+ ('email', models.EmailField(max_length=254)),
+ ('mobile', models.CharField(max_length=20)),
+ ('landline', models.CharField(max_length=20)),
+ ('organisation', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='organisations.Organisation')),
+ ('role', models.ManyToManyField(to='organisations.Role')),
+ ],
+ ),
+ ]
diff --git a/ctrack/organisations/migrations/0010_auto_20200124_1629.py b/ctrack/organisations/migrations/0010_auto_20200124_1629.py
new file mode 100644
index 0000000..de2b751
--- /dev/null
+++ b/ctrack/organisations/migrations/0010_auto_20200124_1629.py
@@ -0,0 +1,23 @@
+# Generated by Django 2.2.9 on 2020-01-24 16:29
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('organisations', '0009_auto_20200124_1623'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='person',
+ name='landline',
+ field=models.CharField(blank=True, max_length=20),
+ ),
+ migrations.AlterField(
+ model_name='person',
+ name='mobile',
+ field=models.CharField(blank=True, max_length=20),
+ ),
+ ]