
- Updated Risk model to include description, created_at, and updated_at fields. - Modified RiskSerializer to include created_at and updated_at in serialized output. - Improved logging in signals for Risk and Control models, including serialization of values. - Added new template tags for CIA label mapping. - Refactored URL patterns for better clarity and added detail views for risks, controls, and incidents. - Implemented list and detail views for risks, controls, and incidents with filtering options. - Enhanced CSS for better UI/UX, including breadcrumbs and table styling. - Created new templates for displaying individual risks, controls, and incidents with detailed information.
39 lines
2.1 KiB
Python
39 lines
2.1 KiB
Python
# Generated by Django 5.2.6 on 2025-09-08 09:44
|
||
|
||
import multiselectfield.db.fields
|
||
from django.db import migrations, models
|
||
|
||
|
||
class Migration(migrations.Migration):
|
||
|
||
dependencies = [
|
||
('risks', '0009_risk_created_at_risk_updatet_at'),
|
||
]
|
||
|
||
operations = [
|
||
migrations.AlterField(
|
||
model_name='residualrisk',
|
||
name='impact',
|
||
field=models.IntegerField(choices=[('1', 'Low (< 1,000 € – minor operational impact)'), ('2', 'Medium (1,000–5,000 € – local impact)'), ('3', 'High (5,000–15,000 € – team-level impact)'), ('4', 'Severe (50,000–100,000 € – regional impact)'), ('5', 'Critical (> 100,000 € – existential threat)')], default=1),
|
||
),
|
||
migrations.AlterField(
|
||
model_name='residualrisk',
|
||
name='likelihood',
|
||
field=models.IntegerField(choices=[('1', 'Very low – occurs less than once every 5 years'), ('2', 'Low – once every 1–5 years'), ('3', 'Likely – once per year or more'), ('4', 'Very likely – multiple times per year/monthly')], default=1),
|
||
),
|
||
migrations.AlterField(
|
||
model_name='risk',
|
||
name='cia',
|
||
field=multiselectfield.db.fields.MultiSelectField(blank=True, choices=[('1', 'Confidentiality'), ('2', 'Integrity'), ('3', 'Availability')], max_length=100, null=True),
|
||
),
|
||
migrations.AlterField(
|
||
model_name='risk',
|
||
name='impact',
|
||
field=models.IntegerField(choices=[('1', 'Low (< 1,000 € – minor operational impact)'), ('2', 'Medium (1,000–5,000 € – local impact)'), ('3', 'High (5,000–15,000 € – team-level impact)'), ('4', 'Severe (50,000–100,000 € – regional impact)'), ('5', 'Critical (> 100,000 € – existential threat)')], default=1),
|
||
),
|
||
migrations.AlterField(
|
||
model_name='risk',
|
||
name='likelihood',
|
||
field=models.IntegerField(choices=[('1', 'Very low – occurs less than once every 5 years'), ('2', 'Low – once every 1–5 years'), ('3', 'Likely – once per year or more'), ('4', 'Very likely – multiple times per year/monthly')], default=1),
|
||
),
|
||
]
|