lots of improvements
This commit is contained in:
+10
-1
@@ -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)
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user