.
This commit is contained in:
+5
-1
@@ -220,10 +220,14 @@ class CidUser(models.Model):
|
||||
|
||||
def email_details(self):
|
||||
msg = f"""
|
||||
Candidate details for upcomming event {self.group}
|
||||
See below for you details for: {self.group}
|
||||
|
||||
---------
|
||||
CID: {self.cid}
|
||||
Passcode: {self.passcode}
|
||||
---------
|
||||
|
||||
You will need these to login to the test system on the day.
|
||||
|
||||
|
||||
|
||||
|
||||
+4
-4
@@ -103,11 +103,11 @@ def cid_scores(request, pk, passcode):
|
||||
# ):
|
||||
# raise Http404("cid not found")
|
||||
|
||||
# kwargs = {"publish_results": True}
|
||||
kwargs = {}
|
||||
#kwargs = {"publish_results": True}
|
||||
kwargs = {"exam_mode": True}
|
||||
|
||||
if request.user.groups.filter(name="view_all_results").exists():
|
||||
kwargs = {}
|
||||
#if request.user.groups.filter(name="view_all_results").exists():
|
||||
# kwargs = {}
|
||||
|
||||
physics_exam_ids = physics_answers.values_list("exam").distinct()
|
||||
physics_exams = PhysicsExam.objects.filter(id__in=physics_exam_ids, **kwargs)
|
||||
|
||||
Reference in New Issue
Block a user