start moking case display sets
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user