diff options
Diffstat (limited to '')
-rw-r--r-- | ctrack/organisations/migrations/0007_auto_20200529_1520.py | 23 | ||||
-rw-r--r-- | ctrack/organisations/models.py | 12 |
2 files changed, 35 insertions, 0 deletions
diff --git a/ctrack/organisations/migrations/0007_auto_20200529_1520.py b/ctrack/organisations/migrations/0007_auto_20200529_1520.py new file mode 100644 index 0000000..59a5089 --- /dev/null +++ b/ctrack/organisations/migrations/0007_auto_20200529_1520.py @@ -0,0 +1,23 @@ +# Generated by Django 2.2.12 on 2020-05-29 15:20 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('organisations', '0006_incidentreport'), + ] + + operations = [ + migrations.AddField( + model_name='incidentreport', + name='dft_handle_status', + field=models.CharField(choices=[('queued', 'QUEUED'), ('reviewing', 'REVIEWING'), ('waiting', 'WAITING'), ('completed', 'COMPLETE')], default='queued', max_length=20), + ), + migrations.AlterField( + model_name='incidentreport', + name='date_time_incident_reported', + field=models.DateTimeField(auto_now=True, verbose_name='Date/Time incident reported'), + ), + ] diff --git a/ctrack/organisations/models.py b/ctrack/organisations/models.py index 2dd798c..270ebd6 100644 --- a/ctrack/organisations/models.py +++ b/ctrack/organisations/models.py @@ -184,6 +184,12 @@ class Stakeholder(models.Model): class IncidentReport(models.Model): + DFT_HANDLE_STATUS = ( + ("queued", "QUEUED"), + ("reviewing", "REVIEWING"), + ("waiting", "WAITING"), + ("completed", "COMPLETE"), + ) INCIDENT_TYPES = ( ("cyber", "Cyber"), ("non-cyber", "Non-Cyber"), @@ -245,3 +251,9 @@ class IncidentReport(models.Model): next_steps = models.TextField( verbose_name="Planned next steps", help_text="What are your planned next steps?" ) + dft_handle_status = models.CharField( + choices=DFT_HANDLE_STATUS, max_length=20, default="queued" + ) + + def __str__(self): + return f"{self.reporting_person} - {self.date_time_incident_reported}" |