This commit is contained in:
Ross
2022-04-04 22:50:48 +01:00
parent cb6ba93f3b
commit ddde2870d1
4 changed files with 22 additions and 2 deletions
+1 -2
View File
@@ -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),
),
]
+2
View File
@@ -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