
- 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.
16 lines
No EOL
681 B
Python
16 lines
No EOL
681 B
Python
from django.urls import path
|
|
from . import views
|
|
|
|
app_name = "risks"
|
|
|
|
urlpatterns = [
|
|
path("", views.dashboard, name="dashboard"),
|
|
path("risks/index", views.dashboard, name="index"),
|
|
path("risks/stats", views.stats, name="statistics"),
|
|
path("risks/list_risks", views.list_risks, name="list_risks"),
|
|
path("risks/risks/<int:id>", views.show_risk, name="show_risk"),
|
|
path("risks/list_controls", views.list_controls, name="list_controls"),
|
|
path("risks/controls/<int:id>", views.show_control, name="show_control"),
|
|
path("risks/list_incidents", views.list_incidents, name="list_incidents"),
|
|
path("risks/incidents/<int:id>", views.show_incident, name="show_incident"),
|
|
] |