
- Added verbose names for Incident and ResidualRisk models for better clarity in admin interface. - Updated impact choices for ResidualRisk and Risk models to ensure consistency and clarity. - Implemented gettext_lazy for translatable strings in models and choices. - Enhanced the Risk, ResidualRisk, Control, AuditLog, and Incident models with Meta options for better admin representation. - Added login required decorators to views for improved security. - Introduced new CSS variables and classes for better visual representation of risk levels. - Created custom template tags for dynamic CSS class assignment based on risk likelihood and impact. - Improved dashboard and statistics views with user authentication checks. - Updated templates for risks, controls, incidents, and admin interface to include edit and delete options for staff users. - Added new login and logout templates for user authentication. - Enhanced list views for risks, controls, and incidents to include action buttons for staff users. - Improved overall UI/UX with Bulma CSS framework for a more modern look and feel.
40 lines
1.4 KiB
Python
40 lines
1.4 KiB
Python
# Generated by Django 5.2.6 on 2025-09-09 12:19
|
||
|
||
from django.db import migrations, models
|
||
|
||
|
||
class Migration(migrations.Migration):
|
||
dependencies = [
|
||
("risks", "0019_alter_incident_options"),
|
||
]
|
||
|
||
operations = [
|
||
migrations.AlterField(
|
||
model_name="residualrisk",
|
||
name="impact",
|
||
field=models.IntegerField(
|
||
choices=[
|
||
(1, "Very Low (< 1,000 € – minor operational impact)"),
|
||
(2, "Low (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="impact",
|
||
field=models.IntegerField(
|
||
choices=[
|
||
(1, "Very Low (< 1,000 € – minor operational impact)"),
|
||
(2, "Low (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,
|
||
),
|
||
),
|
||
]
|