start moking case display sets

This commit is contained in:
Ross
2025-06-30 13:04:05 +01:00
parent 8229813eba
commit 4df7e5aebd
2 changed files with 53 additions and 0 deletions
+26
View File
@@ -1102,6 +1102,32 @@ class SeriesDetail(models.Model):
class Meta:
ordering = ("sort_order",)
class CaseDisplaySet(models.Model, AuthorMixin):
case = models.ForeignKey(Case, on_delete=models.CASCADE)
name = models.CharField(
max_length=255,
help_text="Name of the display set",
)
description = models.TextField(
blank=True,
help_text="Description of the display set",
)
viewerstate = models.JSONField(
null=True,
blank=True,
help_text="Viewer state for the display set",
)
annotations = models.JSONField(
null=True,
blank=True,
help_text="Annotations for the display set",
)
class CaseDetail(models.Model):
"""A through table that stores the relationship between a case and a collection.