.
This commit is contained in:
+1
-2
@@ -188,12 +188,11 @@ class RapidForm(ModelForm):
|
|||||||
ImageFormSet = inlineformset_factory(
|
ImageFormSet = inlineformset_factory(
|
||||||
Rapid,
|
Rapid,
|
||||||
RapidImage,
|
RapidImage,
|
||||||
fields=["image", "feedback_image"],
|
fields=["image", "feedback_image", "description"],
|
||||||
exclude=[],
|
exclude=[],
|
||||||
can_delete=True,
|
can_delete=True,
|
||||||
extra=1,
|
extra=1,
|
||||||
max_num=10,
|
max_num=10,
|
||||||
field_classes="testing",
|
|
||||||
)
|
)
|
||||||
|
|
||||||
AnswerFormSet = inlineformset_factory(
|
AnswerFormSet = inlineformset_factory(
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
# Generated by Django 3.2.10 on 2022-04-04 21:50
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('rapids', '0044_rapid_history'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='rapidimage',
|
||||||
|
name='description',
|
||||||
|
field=models.CharField(blank=True, max_length=255, null=True),
|
||||||
|
),
|
||||||
|
]
|
||||||
@@ -484,6 +484,8 @@ class RapidImage(models.Model):
|
|||||||
|
|
||||||
feedback_image = models.BooleanField(default=False)
|
feedback_image = models.BooleanField(default=False)
|
||||||
|
|
||||||
|
description = models.CharField(max_length=255, null=True, blank=True)
|
||||||
|
|
||||||
image_md5_hash = models.CharField(max_length=32, null=True, blank=True)
|
image_md5_hash = models.CharField(max_length=32, null=True, blank=True)
|
||||||
|
|
||||||
is_dicom = models.BooleanField(default=False)
|
is_dicom = models.BooleanField(default=False)
|
||||||
|
|||||||
@@ -40,6 +40,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<p class="pre-whitespace"><b>Open Access:</b> {{ question.open_access }}</p>
|
<p class="pre-whitespace"><b>Open Access:</b> {{ question.open_access }}</p>
|
||||||
<p class="pre-whitespace"><b>Feedback:</b> {{ question.feedback }}</p>
|
<p class="pre-whitespace"><b>Feedback:</b> {{ question.feedback }}</p>
|
||||||
|
<p class="pre-whitespace"><b>History:</b> {{ question.history }}</p>
|
||||||
<p><b>Author(s):</b> {% for author in question.author.all %} <a
|
<p><b>Author(s):</b> {% for author in question.author.all %} <a
|
||||||
href="{% url 'rapids:author_detail' pk=author.pk %}">{{author}}</a>, {% endfor %}</p>
|
href="{% url 'rapids:author_detail' pk=author.pk %}">{{author}}</a>, {% endfor %}</p>
|
||||||
<p><b>Checked by:</b> {% for verified in question.verified.all %} <a
|
<p><b>Checked by:</b> {% for verified in question.verified.all %} <a
|
||||||
|
|||||||
Reference in New Issue
Block a user