ISO-27001-Risk-Management/risks/models/impact_choice.py
2025-09-22 10:14:21 +02:00

13 lines
No EOL
484 B
Python

from django.db import models
from django.utils.translation import gettext_lazy as _
class ImpactChoice(models.Model):
"""
Impact choices for Risks and Controls.
"""
name = models.CharField(_("Impact Name"), max_length=50)
description = models.TextField(_("Description"), blank=True, null=True)
value = models.IntegerField(_("Numeric Value"), unique=True, default=1)
def __str__(self):
return f"{self.value} - {self.name} ({self.description})"