diff --git a/physics/templates/physics/exam_overview.html b/physics/templates/physics/exam_overview.html index cd9c2033..42bcca19 100644 --- a/physics/templates/physics/exam_overview.html +++ b/physics/templates/physics/exam_overview.html @@ -48,7 +48,7 @@ // send request to change the is_private state on customSwitches toggle $("#exam-active-switch").on("change", function () { $.ajax({ - url: "{% url 'anatomy:exam_toggle_active' pk=exam.pk %}", + url: "{% url 'physics:exam_toggle_active' pk=exam.pk %}", data: { csrfmiddlewaretoken: "{{ csrf_token }}", active: this.checked // true if checked else false