.
This commit is contained in:
@@ -86,11 +86,11 @@
|
||||
data: {
|
||||
csrfmiddlewaretoken: "{{ csrf_token }}",
|
||||
number: $("#add-number").get(0).value,
|
||||
physics_exams: $("#physics-exams").val(),
|
||||
rapid_exams: $("#rapid-exams").val(),
|
||||
sbas_exams: $("#sbas-exams").val(),
|
||||
longs_exams: $("#longs-exams").val(),
|
||||
anatomy_exams: $("#anatomy-exams").val(),
|
||||
physics_exams: JSON.stringify($("#physics-exams").val()),
|
||||
rapid_exams: JSON.stringify($("#rapid-exams").val()),
|
||||
sbas_exams: JSON.stringify($("#sbas-exams").val()),
|
||||
longs_exams: JSON.stringify($("#longs-exams").val()),
|
||||
anatomy_exams: JSON.stringify($("#anatomy-exams").val()),
|
||||
},
|
||||
type: "POST",
|
||||
dataType: "json",
|
||||
|
||||
+1
-1
@@ -954,7 +954,7 @@ class CidUserView(LoginRequiredMixin, SingleTableMixin, FilterView):
|
||||
def create_cid_users(request):
|
||||
if request.is_ajax() and request.method == "POST":
|
||||
number = int(request.POST.get("number"))
|
||||
physics_exams = request.POST.get("physics_exams")
|
||||
physics_exams = json.loads(request.POST.get("physics_exams"))
|
||||
print(f"{physics_exams=}")
|
||||
|
||||
new_cid = max(CidUser.objects.all().order_by("-cid")[0].cid + 1, 50000)
|
||||
|
||||
Reference in New Issue
Block a user