diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2020-04-03 15:19:08 +0100 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2020-04-03 15:19:08 +0100 |
commit | 3591b1b87793a2734718390691bdde41af1f8bd0 (patch) | |
tree | 87b98b1fc755f8aabd83484deca73e09c54b84bd /ctrack/register/migrations/0001_initial.py | |
parent | c184c99575e03c8b0248b10c65ca234e11695e8d (diff) |
big migration reset
Diffstat (limited to 'ctrack/register/migrations/0001_initial.py')
-rw-r--r-- | ctrack/register/migrations/0001_initial.py | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/ctrack/register/migrations/0001_initial.py b/ctrack/register/migrations/0001_initial.py index 2ac7241..7db1237 100644 --- a/ctrack/register/migrations/0001_initial.py +++ b/ctrack/register/migrations/0001_initial.py @@ -1,7 +1,5 @@ -# Generated by Django 2.2.9 on 2020-02-21 15:20 +# Generated by Django 2.2.9 on 2020-04-03 14:07 -import ctrack.register.models -from django.conf import settings from django.db import migrations, models import django.db.models.deletion @@ -11,9 +9,8 @@ class Migration(migrations.Migration): initial = True dependencies = [ - ('organisations', '0004_auto_20200220_1634'), - migrations.swappable_dependency(settings.AUTH_USER_MODEL), - ('caf', '0002_auto_20200220_1434'), + ('caf', '0002_auto_20200403_1407'), + ('organisations', '0001_initial'), ] operations = [ @@ -23,23 +20,24 @@ class Migration(migrations.Migration): ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('descriptor', models.CharField(max_length=50)), ('enforcement_instrument', models.BooleanField(default=False)), - ('regulation_reference', models.CharField(blank=True, max_length=100)), - ('comments', models.TextField(max_length=1000)), + ('regulation_reference', models.CharField(blank=True, max_length=100, null=True)), + ('comments', models.TextField(blank=True, max_length=1000, null=True)), ], ), migrations.CreateModel( name='EngagementEvent', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('short_description', models.CharField(help_text='Short description of the event', max_length=50)), ('date', models.DateTimeField()), - ('end_date', models.DateTimeField(blank=True)), - ('document_link', models.URLField(max_length=1000)), - ('response_date_requested', models.DateField()), - ('response_received', models.DateField()), + ('end_date', models.DateTimeField(blank=True, null=True)), + ('document_link', models.URLField(blank=True, max_length=1000, null=True)), + ('response_date_requested', models.DateField(blank=True, null=True)), + ('response_received', models.DateField(blank=True, null=True)), + ('comments', models.TextField(blank=True, max_length=1000, null=True)), ('participants', models.ManyToManyField(to='organisations.Person')), - ('related_caf', models.ForeignKey(blank=True, on_delete=django.db.models.deletion.CASCADE, to='caf.CAF')), + ('related_caf', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='caf.CAF')), ('type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='register.EngagementType')), - ('user', models.ForeignKey(on_delete=models.SET(ctrack.register.models.EngagementEvent.get_sentinel_user), to=settings.AUTH_USER_MODEL)), ], ), ] |