From 883b11a6896f196decdaaa8f9d9521c09b6d0e46 Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 7 Oct 2024 11:26:02 +0100 Subject: [PATCH] . --- anatomy/templates/anatomy/question_detail.html | 2 +- anatomy/views.py | 3 +++ generic/views.py | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/anatomy/templates/anatomy/question_detail.html b/anatomy/templates/anatomy/question_detail.html index 2c020fd9..2c43e666 100644 --- a/anatomy/templates/anatomy/question_detail.html +++ b/anatomy/templates/anatomy/question_detail.html @@ -7,7 +7,7 @@ data-annotations='{{question.image_annotations}}' data-edit_annotation=true>--> {% include 'anatomy/question_link_header.html' %} -
diff --git a/anatomy/views.py b/anatomy/views.py index c139cfa3..ccac0bc6 100644 --- a/anatomy/views.py +++ b/anatomy/views.py @@ -26,6 +26,9 @@ from django.http import HttpResponseRedirect, HttpResponse from dal import autocomplete +from django.conf import settings + + from .forms import ( AnatomyAnswerForm, AnatomyQuestionAnswerForm, diff --git a/generic/views.py b/generic/views.py index 9ead2903..b8899a95 100644 --- a/generic/views.py +++ b/generic/views.py @@ -2498,7 +2498,7 @@ class GenericViewBase: return render( request, f"{self.app_name}/question_detail.html", - {"question": question, "view_feedback": view_feedback}, + {"question": question, "view_feedback": view_feedback, "remote_url": settings.REMOTE_URL}, ) # TODO: improve permissions on these