.
This commit is contained in:
+1
-1
@@ -232,7 +232,7 @@ class CaseForm(ModelForm):
|
|||||||
"discussion",
|
"discussion",
|
||||||
"condition",
|
"condition",
|
||||||
"pathological_process",
|
"pathological_process",
|
||||||
# "sign",
|
"report",
|
||||||
"open_access",
|
"open_access",
|
||||||
]
|
]
|
||||||
# fields = ['question', 'findings', 'subspecialty', 'references']
|
# fields = ['question', 'findings', 'subspecialty', 'references']
|
||||||
|
|||||||
@@ -0,0 +1,19 @@
|
|||||||
|
# Generated by Django 3.2.10 on 2021-12-23 17:20
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
import django.db.models.deletion
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('atlas', '0022_auto_20211214_1745'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='case',
|
||||||
|
name='previous_case',
|
||||||
|
field=models.OneToOneField(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='next_case', to='atlas.case'),
|
||||||
|
),
|
||||||
|
]
|
||||||
@@ -269,6 +269,8 @@ class Case(models.Model):
|
|||||||
|
|
||||||
notes = GenericRelation(QuestionNote)
|
notes = GenericRelation(QuestionNote)
|
||||||
|
|
||||||
|
previous_case = models.OneToOneField("Case", on_delete=models.SET_NULL, null=True, related_name="next_case")
|
||||||
|
|
||||||
# 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):
|
||||||
|
|||||||
@@ -22,6 +22,8 @@
|
|||||||
|
|
||||||
<p class="pre-whitespace"><b>Discussion:</b> {{ case.discussion }}</p>
|
<p class="pre-whitespace"><b>Discussion:</b> {{ case.discussion }}</p>
|
||||||
|
|
||||||
|
<p class="pre-whitespace"><b>Report:</b> {{ case.report }}</p>
|
||||||
|
|
||||||
<div class="pre-whitespace multi-image-block"><b>Series:</b>
|
<div class="pre-whitespace multi-image-block"><b>Series:</b>
|
||||||
{% for series in case.series.all %}
|
{% for series in case.series.all %}
|
||||||
<span class="series-block">
|
<span class="series-block">
|
||||||
@@ -109,6 +111,7 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
</p>
|
</p>
|
||||||
|
<p class="pre-whitespace"><b>Previous case:</b> {{ case.previous_case }}</p>
|
||||||
<div>
|
<div>
|
||||||
{% include 'question_notes.html' %}
|
{% include 'question_notes.html' %}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user