diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2020-01-25 14:39:26 +0000 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2020-01-25 14:39:26 +0000 |
commit | 5a61862454339b61bd4ab50399ac1d683fb2b564 (patch) | |
tree | 5e67cc44dffad34fd6288fd7200b095f2e049544 /ctrack/organisations/migrations/0009_auto_20200124_1623.py | |
parent | c488ad804bcc7c3febee3bea2089b86bbe419bbb (diff) |
Better admin
Diffstat (limited to '')
-rw-r--r-- | ctrack/organisations/migrations/0009_auto_20200124_1623.py | 53 |
1 files changed, 53 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')), + ], + ), + ] |