work on case priors
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user