From 3d42dc032ce883302d2dba0d128fc5a516a02b77 Mon Sep 17 00:00:00 2001 From: Ross Date: Thu, 21 Apr 2022 17:16:46 +0100 Subject: [PATCH] . --- generic/templates/generic/exam_cids_edit.html | 2 +- generic/views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/generic/templates/generic/exam_cids_edit.html b/generic/templates/generic/exam_cids_edit.html index d49e49f9..59e9a5a3 100644 --- a/generic/templates/generic/exam_cids_edit.html +++ b/generic/templates/generic/exam_cids_edit.html @@ -12,7 +12,7 @@ {% for cid in available_cid_users %}
  • {{cid.cid}} [{{cid.passcode}}] {{cid.name}} / - Email: {{cid.email}} + Email: {{cid.email}}
  • {% endfor %} diff --git a/generic/views.py b/generic/views.py index b8b4ac1d..f05ce2fa 100644 --- a/generic/views.py +++ b/generic/views.py @@ -676,7 +676,7 @@ class ExamViews(View, LoginRequiredMixin): if "edit_cid_user" in request.POST: user_id = request.POST.get("edit_cid_user") - add = request.POST.get("add") + add = request.POST.get("add") == "true" print(user_id) print(request.POST)