ISO-27001-Risk-Management/risks/migrations/0010_alter_residualrisk_impact_and_more.py
Kevin Heyer 43e86d0357 feat: Enhance Risk Management Module
- 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.
2025-09-08 15:03:12 +02:00

39 lines
2.1 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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,0005,000 € local impact)'), ('3', 'High (5,00015,000 € team-level impact)'), ('4', 'Severe (50,000100,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 15 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,0005,000 € local impact)'), ('3', 'High (5,00015,000 € team-level impact)'), ('4', 'Severe (50,000100,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 15 years'), ('3', 'Likely once per year or more'), ('4', 'Very likely multiple times per year/monthly')], default=1),
),
]