.
This commit is contained in:
+4
-4
@@ -131,10 +131,10 @@ class LongSeries(models.Model):
|
|||||||
long = models.ForeignKey("Long", help_text="The question this series should be associated with", related_name="series", on_delete=models.SET_NULL, null=True)
|
long = models.ForeignKey("Long", help_text="The question this series should be associated with", related_name="series", on_delete=models.SET_NULL, null=True)
|
||||||
description = models.TextField(blank=True, help_text="Description of stack, for admin organisation, will not be visible when taking")
|
description = models.TextField(blank=True, help_text="Description of stack, for admin organisation, will not be visible when taking")
|
||||||
|
|
||||||
def get_examinations(self):
|
#def get_examinations(self):
|
||||||
"""Returns a comma seperated text list of regions"""
|
# """Returns a comma seperated text list of regions"""
|
||||||
examinations = ", ".join([i.examination for i in self.examination.all()])
|
# examinations = ", ".join([i.examination for i in self.examination.all()])
|
||||||
return examinations
|
# return examinations
|
||||||
|
|
||||||
def get_absolute_url(self):
|
def get_absolute_url(self):
|
||||||
return reverse('longs:long_series_detail', kwargs={'pk': self.pk})
|
return reverse('longs:long_series_detail', kwargs={'pk': self.pk})
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
|
|
||||||
<div>{{ series.modality}}, {{ series.get_examinations }}</div>
|
<div>{{ series.modality}}, {{ series.examination }}</div>
|
||||||
|
|
||||||
<div id="single-dicom-viewer" class="dicom-viewer" data-images="{{ series.get_images }}" data-annotations=''></div>
|
<div id="single-dicom-viewer" class="dicom-viewer" data-images="{{ series.get_images }}" data-annotations=''></div>
|
||||||
Reference in New Issue
Block a user