lots of improvements

This commit is contained in:
Ross
2025-07-14 13:26:11 +01:00
parent ec97fa0c71
commit 5187885c3b
14 changed files with 536 additions and 71 deletions
+10 -1
View File
@@ -1119,7 +1119,12 @@ class SeriesDetail(models.Model):
ordering = ("sort_order",)
class CaseDisplaySet(models.Model, AuthorMixin):
case = models.ForeignKey(Case, on_delete=models.CASCADE)
"""
This is analogous to a SeriesFinding but for a Case (it has
access to all the series stacks).
"""
case = models.ForeignKey(Case, on_delete=models.CASCADE, related_name="display_sets")
name = models.CharField(
max_length=255,
@@ -1142,6 +1147,10 @@ class CaseDisplaySet(models.Model, AuthorMixin):
blank=True,
help_text="Annotations for the display set",
)
findings = models.ManyToManyField(Finding, blank=True)
structures = models.ManyToManyField(Structure, blank=True)
conditions = models.ManyToManyField(Condition, blank=True)