.
This commit is contained in:
+4
-1
@@ -28,7 +28,7 @@ from helpers.images import image_as_base64, pretty_print_dicom
|
|||||||
|
|
||||||
from anatomy.models import Modality
|
from anatomy.models import Modality
|
||||||
|
|
||||||
from generic.models import Examination, Condition, Sign, ExamBase, Plane, Contrast
|
from generic.models import Examination, Condition, Sign, ExamBase, Plane, Contrast, QuestionNote
|
||||||
|
|
||||||
# from generic.models import Examination, Site, Condition, Sign
|
# from generic.models import Examination, Site, Condition, Sign
|
||||||
|
|
||||||
@@ -42,6 +42,7 @@ from django.utils import timezone
|
|||||||
|
|
||||||
import reversion
|
import reversion
|
||||||
|
|
||||||
|
from django.contrib.contenttypes.fields import GenericRelation
|
||||||
|
|
||||||
|
|
||||||
image_storage = FileSystemStorage(
|
image_storage = FileSystemStorage(
|
||||||
@@ -133,6 +134,8 @@ class Long(models.Model):
|
|||||||
|
|
||||||
series = SortedManyToManyField("LongSeries", related_name="long")
|
series = SortedManyToManyField("LongSeries", related_name="long")
|
||||||
|
|
||||||
|
notes = GenericRelation(QuestionNote)
|
||||||
|
|
||||||
#question_file = models.FileField(upload_to=question_file_directory_path, blank=True, null=True)
|
#question_file = models.FileField(upload_to=question_file_directory_path, blank=True, null=True)
|
||||||
|
|
||||||
def get_absolute_url(self):
|
def get_absolute_url(self):
|
||||||
|
|||||||
@@ -75,7 +75,6 @@
|
|||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
{% endif %}
|
|
||||||
<details>
|
<details>
|
||||||
<summary>
|
<summary>
|
||||||
Suggested answers
|
Suggested answers
|
||||||
@@ -86,6 +85,7 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
</details>
|
</details>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<details open>
|
<details open>
|
||||||
|
|||||||
Reference in New Issue
Block a user