work on case priors

This commit is contained in:
Ross
2025-04-28 22:36:04 +01:00
parent 5e578ca2b0
commit 6564b25250
8 changed files with 135 additions and 24 deletions
+13
View File
@@ -1118,6 +1118,19 @@ class CasePrior(models.Model):
relation_text = models.CharField(max_length=255, blank=True, help_text="Text to describe the relationship between the cases")
class PriorVisibility(models.TextChoices):
NONE = "NO", _("None")
ALWAYS = "AL", _("Always")
REVIEW = "RE", _("Review")
prior_visibility = models.CharField(
max_length=2,
choices=PriorVisibility.choices,
default=PriorVisibility.ALWAYS,
help_text="Defines when the prior case is shown to the user",
)
class Meta:
unique_together = ("case_detail", "prior_case")