diff --git a/anatomy/templates/anatomy/base.html b/anatomy/templates/anatomy/base.html
index 9be5603e..d9ae5560 100644
--- a/anatomy/templates/anatomy/base.html
+++ b/anatomy/templates/anatomy/base.html
@@ -5,17 +5,40 @@
{% endblock %}
{% block navigation %}
- Anatomy:
- {% if request.user.is_authenticated %}
- Packets /
- Exams /
- Create Exam /
- Questions /
- Create Question
- {% if request.user.is_superuser %}
- / Answers
- {% endif %}
- {% endif %}
+
+
{% endblock %}
{% block content %}
{% if simple_content %}
diff --git a/anatomy/templates/anatomy/question_list.html b/anatomy/templates/anatomy/question_view.html
similarity index 100%
rename from anatomy/templates/anatomy/question_list.html
rename to anatomy/templates/anatomy/question_view.html
diff --git a/anatomy/urls.py b/anatomy/urls.py
index 63ab6f93..a38048b8 100644
--- a/anatomy/urls.py
+++ b/anatomy/urls.py
@@ -7,21 +7,16 @@ from django.views.decorators.cache import cache_page
app_name = "anatomy"
urlpatterns = [
- # path('', views.question_list, name='question_list'),
+ # path('', views.question_view, name='question_view'),
path(
"question/",
views.AnatomyQuestionView.as_view(),
- name="question_list",
+ name="question_view",
),
path(
"question/create/",
views.AnatomyQuestionCreate.as_view(),
- name="anatomy_question_create",
- ),
- path(
- "create/exam/",
- views.AnatomyQuestionCreate.as_view(),
- name="anatomy_create_exam",
+ name="question_create",
),
path(
"question//update",
diff --git a/anatomy/views.py b/anatomy/views.py
index ee9c660b..42ac52c5 100644
--- a/anatomy/views.py
+++ b/anatomy/views.py
@@ -109,14 +109,14 @@ def user_is_admin(user):
return False
-def question_list(request):
+def question_view(request):
questions = AnatomyQuestion.objects.all()
if not request.user.groups.filter(name="anatomy_checker").exists():
questions = questions.filter(open_access=False)
# raise PermissionDenied()
- return render(request, "anatomy/question_list.html", {"questions": questions})
+ return render(request, "anatomy/question_view.html", {"questions": questions})
@login_required
@@ -794,7 +794,7 @@ class UserAnswerDelete(SuperuserRequiredMixin, DeleteView):
class QuestionDelete(AuthorOrCheckerRequiredMixin, DeleteView):
model = AnatomyQuestion
- success_url = reverse_lazy("anatomy:question_list")
+ success_url = reverse_lazy("anatomy:question_view")
class ExamCreate(ExamCreateBase):
diff --git a/generic/urls.py b/generic/urls.py
index c57f14f2..5e887bc9 100755
--- a/generic/urls.py
+++ b/generic/urls.py
@@ -8,7 +8,6 @@ from generic.views import ExamViews as GenericExamViews, GenericViewBase
app_name = "generic"
urlpatterns = [
- # path('', views.question_list, name='question_list'),
path("examination/", views.ExaminationView.as_view(), name="examination_view"),
path("examination/", views.examination_detail, name="examination_detail"),
path(
diff --git a/longs/models.py b/longs/models.py
index c7281ce2..81dea8dd 100644
--- a/longs/models.py
+++ b/longs/models.py
@@ -417,7 +417,7 @@ class LongCreationDefault(models.Model):
# help_text="Default site to use when creating a new long")
def get_absolute_url(self):
- return reverse("longs:long_create")
+ return reverse("longs:question_create")
class ExamQuestionDetail(models.Model):
sort_order = models.IntegerField(default=1000)
diff --git a/longs/templates/longs/base.html b/longs/templates/longs/base.html
index aa0db0fa..acd58998 100755
--- a/longs/templates/longs/base.html
+++ b/longs/templates/longs/base.html
@@ -1,33 +1,66 @@
-{% extends 'base.html' %}
-
-{% block title %}
-Longs
-{% endblock %}
-
-{% block css %}
-{% endblock %}
-
-{% block js %}
-{% endblock %}
-
-
-
-{% block content %}
-{% endblock %}
-{% block navigation %}
-Longs:
-{% if request.user.is_authenticated %}
-Exams /
-Create Exam /
-Cases /
-Series /
-Create Case /
-Create Series
-{% endif %}
-{% if request.user.is_superuser %}
- / Answers
-{% endif %}
-{% comment %}
-Questions by:
-author {% endcomment %}
+{% extends 'base.html' %}
+
+{% block title %}
+ Longs
+{% endblock %}
+
+{% block css %}
+{% endblock %}
+
+{% block js %}
+{% endblock %}
+
+
+
+{% block content %}
+{% endblock %}
+{% block navigation %}
+
+ Longs:
+ {% if request.user.is_authenticated %}
+ Exams /
+ Create Exam /
+ Cases /
+ Series /
+ Create Case /
+ {% endif %}
+ {% if request.user.is_superuser %}
+ / Answers
+ {% endif %}
+{% comment %}
+Questions by:
+author {% endcomment %}
{% endblock %}
\ No newline at end of file
diff --git a/longs/templates/longs/longseries_form.html b/longs/templates/longs/longseries_form.html
index 9aab61a5..f843c29f 100755
--- a/longs/templates/longs/longseries_form.html
+++ b/longs/templates/longs/longseries_form.html
@@ -318,7 +318,6 @@
{% endblock %}
{% block content %}
Series Form
-
This form will create a image set that can be associated with a long question. If the question has already been created it can be linked below.