diff options
Diffstat (limited to 'ctrack/assessments/migrations/0001_initial.py')
-rw-r--r-- | ctrack/assessments/migrations/0001_initial.py | 62 |
1 files changed, 36 insertions, 26 deletions
diff --git a/ctrack/assessments/migrations/0001_initial.py b/ctrack/assessments/migrations/0001_initial.py index 9943e4b..94afdf9 100644 --- a/ctrack/assessments/migrations/0001_initial.py +++ b/ctrack/assessments/migrations/0001_initial.py @@ -1,4 +1,4 @@ -# Generated by Django 2.2.9 on 2020-03-12 14:57 +# Generated by Django 2.2.9 on 2020-04-03 14:07 from django.db import migrations, models import django.db.models.deletion @@ -9,60 +9,70 @@ class Migration(migrations.Migration): initial = True dependencies = [ - ('organisations', '0006_organisation_oes'), - ('caf', '0018_remove_caf_owner'), ] operations = [ migrations.CreateModel( - name='CAFContributingOutcome', + name='CAFAssessment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('designation', models.CharField(help_text='e.g. A1.a, B3.c, etc', max_length=5)), - ('descriptor', models.CharField(help_text='e.g. Board Direction', max_length=50)), - ('order_id', models.IntegerField()), + ('comments', models.TextField(max_length=500)), ], + options={ + 'verbose_name': 'CAF Assessment', + }, ), migrations.CreateModel( name='CAFObjective', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('name', models.CharField(help_text='e.g. Managing Risk', max_length=20)), + ('name', models.CharField(help_text='e.g. Managing Risk', max_length=100)), ('description', models.TextField(max_length=500)), ('order_id', models.IntegerField()), ], + options={ + 'verbose_name': 'CAF Objective', + }, ), migrations.CreateModel( - name='CAFSelfAssessment', + name='CAFPrinciple', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('comments', models.TextField(max_length=500)), - ('caf', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='caf.CAF')), - ('completer', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='organisations.Person')), + ('designation', models.CharField(help_text='e.g. A1, B3, etc', max_length=5)), + ('title', models.CharField(max_length=50)), + ('description', models.TextField(max_length=1000)), + ('order_id', models.IntegerField()), + ('caf_objective', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='assessments.CAFObjective')), ], + options={ + 'verbose_name': 'CAF Principle', + }, ), migrations.CreateModel( - name='CAFSelfAssessmentOutcomeScore', + name='CAFContributingOutcome', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('caf_contributing_outcome', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='assessments.CAFContributingOutcome')), - ('caf_self_assessment', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='assessments.CAFSelfAssessment')), + ('designation', models.CharField(help_text='e.g. A1.a, B3.c, etc', max_length=5)), + ('name', models.CharField(help_text='e.g. Board Direction', max_length=100)), + ('description', models.TextField(max_length=1000)), + ('order_id', models.IntegerField()), + ('principle', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='assessments.CAFPrinciple')), ], + options={ + 'verbose_name': 'CAF Contributing Outcome', + }, ), migrations.CreateModel( - name='CAFPrinciple', + name='CAFAssessmentOutcomeScore', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('designation', models.CharField(help_text='e.g. A1, B3, etc', max_length=5)), - ('title', models.CharField(max_length=50)), - ('description', models.TextField(max_length=1000)), - ('order_id', models.IntegerField()), - ('caf_objective', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='assessments.CAFObjective')), + ('assessment_score', models.CharField(choices=[('Achieved', 'Achieved'), ('Partially Achieved', 'Partially Achieved'), ('Not Achieved', 'Not Achieved')], help_text='Choose an assessment score', max_length=20, verbose_name='Assessment Score')), + ('baseline_assessment_score', models.CharField(choices=[('Achieved', 'Achieved'), ('Partially Achieved', 'Partially Achieved'), ('Not Achieved', 'Not Achieved')], help_text='Choose an assessment score', max_length=20, verbose_name='Baseline Score')), + ('caf_assessment', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='assessments.CAFAssessment', verbose_name='CAF Assessment')), + ('caf_contributing_outcome', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='assessments.CAFContributingOutcome', verbose_name='CAF Contributing Outcome')), ], - ), - migrations.AddField( - model_name='cafcontributingoutcome', - name='principle', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='assessments.CAFPrinciple'), + options={ + 'verbose_name': 'CAF Assessment Outcome Score', + }, ), ] |