From 9faa8cf5057586e5fab939ef12da959300a19c51 Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 26 Apr 2021 13:26:10 +0100 Subject: [PATCH] . --- rapids/templates/rapids/rapid_form.html | 7 +++++-- rapids/views.py | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/rapids/templates/rapids/rapid_form.html b/rapids/templates/rapids/rapid_form.html index 64c9835b..485fa232 100755 --- a/rapids/templates/rapids/rapid_form.html +++ b/rapids/templates/rapids/rapid_form.html @@ -333,7 +333,10 @@ {% block content %}

Submit Rapid

Edit defaults -Abnormality, Region and Laterality are used to categorise within the system (they are not used for marking). String answers that match those added below will be used for automatic marking. Multiple images can be added to a question. If the feedback image box is checked they will not be displayed when taking the question. +

+

Instructions

+ Abnormality, Region and Laterality are used to categorise within the system (they are not used for marking). String answers that match those added below will be used for automatic marking. Multiple images can be added to a question. If the feedback image box is checked they will not be displayed when taking the question. +

{% csrf_token %} {{ answer_formset.management_form }}

Images:

-
Drop images here (or use the buttons below)
Feedback image?
drop those here
+
{% for form in image_formset %}
    diff --git a/rapids/views.py b/rapids/views.py index 9fb9d9da..6011448b 100755 --- a/rapids/views.py +++ b/rapids/views.py @@ -92,7 +92,7 @@ class AuthorOrCheckerRequiredMixin(object): def question_detail(request, pk): rapid = get_object_or_404(Rapid, pk=pk) - if not request.user.groups.filter(name="rapid_checker").exists() and request.user not in question.author.all(): + if not request.user.groups.filter(name="rapid_checker").exists() and request.user not in rapid.author.all(): raise PermissionDenied() # if request.user not in rapid.author.all(): # raise PermissionDenied