This commit is contained in:
Ross
2020-12-26 19:53:48 +00:00
parent 4b44d21e23
commit 33077cbdd6
+1 -1
View File
@@ -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