diff options
Diffstat (limited to '')
-rw-r--r-- | ctrack/caf/forms.py | 12 | ||||
-rw-r--r-- | ctrack/caf/migrations/0008_auto_20200814_1318.py | 23 | ||||
-rw-r--r-- | ctrack/caf/models.py | 6 |
3 files changed, 41 insertions, 0 deletions
diff --git a/ctrack/caf/forms.py b/ctrack/caf/forms.py index 594a162..a2623e1 100644 --- a/ctrack/caf/forms.py +++ b/ctrack/caf/forms.py @@ -25,6 +25,11 @@ class ApplicableSystemCreateFromCafForm(forms.Form): function = forms.CharField(widget=forms.Textarea) organisation = forms.ModelChoiceField(queryset=Organisation.objects.all()) caf = forms.ModelChoiceField(queryset=CAF.objects.all()) + essential_service = forms.CharField( + widget=forms.Textarea, + max_length=255, + help_text="Description of the essential service which the system suppports.", + ) dft_categorisation = forms.ChoiceField( choices=ApplicableSystem.SYSTEM_CATEGORISATION, help_text="Refer to documentation for description of these criteria", @@ -50,6 +55,7 @@ class ApplicableSystemCreateFromCafForm(forms.Form): Fieldset( "", Field("name", css_class="form-control-lg"), + "essential_service", "function", "dft_categorisation", "oes_categorisation", @@ -73,6 +79,11 @@ class ApplicableSystemCreateFromOrgForm(forms.Form): function = forms.CharField(widget=forms.Textarea) organisation = forms.ModelChoiceField(queryset=Organisation.objects.all()) caf = forms.ModelChoiceField(queryset=CAF.objects.all()) + essential_service = forms.CharField( + widget=forms.Textarea, + max_length=255, + help_text="Description of the essential service which the system suppports.", + ) dft_categorisation = forms.ChoiceField( choices=ApplicableSystem.SYSTEM_CATEGORISATION, help_text="Refer to documentation for description of these criteria", @@ -96,6 +107,7 @@ class ApplicableSystemCreateFromOrgForm(forms.Form): Fieldset( "", Field("name", css_class="form-control-lg"), + "essential_service", "function", "dft_categorisation", "oes_categorisation", diff --git a/ctrack/caf/migrations/0008_auto_20200814_1318.py b/ctrack/caf/migrations/0008_auto_20200814_1318.py new file mode 100644 index 0000000..90f188f --- /dev/null +++ b/ctrack/caf/migrations/0008_auto_20200814_1318.py @@ -0,0 +1,23 @@ +# Generated by Django 2.2.12 on 2020-08-14 13:18 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('caf', '0007_auto_20200814_1230'), + ] + + operations = [ + migrations.AddField( + model_name='applicablesystem', + name='essential_service', + field=models.CharField(default='NA', help_text='Name of the essential service which the system suppports.', max_length=255, verbose_name='Essential Service'), + ), + migrations.AlterField( + model_name='applicablesystem', + name='oes_categorisation', + field=models.CharField(default='NA', help_text="Categorisation based on OES' own internal prioritisation process.", max_length=255, verbose_name='OES Categorisation'), + ), + ] diff --git a/ctrack/caf/models.py b/ctrack/caf/models.py index b7314f9..27220bc 100644 --- a/ctrack/caf/models.py +++ b/ctrack/caf/models.py @@ -78,6 +78,12 @@ class ApplicableSystem(models.Model): null=True, related_name="applicable_systems", ) + essential_service = models.CharField( + max_length=255, + default="NA", + verbose_name="Essential Service", + help_text="Description of the essential service which the system suppports.", + ) dft_categorisation = models.CharField( max_length=2, choices=SYSTEM_CATEGORISATION, |