This commit is contained in:
Ross
2021-12-12 21:41:30 +00:00
parent 2300143af4
commit 7cac4db2c6
2 changed files with 6 additions and 5 deletions
+3
View File
@@ -156,6 +156,9 @@ class Exam(ExamBase):
valid_users = models.ManyToManyField(CidUser, blank=True, related_name="physics_exams")
def get_take_url(self):
return reverse("physics:exam_start", kwargs={"pk": self.pk})
@reversion.register
class CidUserAnswer(models.Model):
+3 -5
View File
@@ -3,9 +3,7 @@
{% block content %}
<div class="">
<h2>CID: {{ cid }}</h2>
<h3>Exams to take</h3>
<h3>Available exams</h3>
{% for t, exams in available_exams %}
<h4>{{t}}</h4>
<ul>
@@ -15,8 +13,8 @@
</ul>
{% endfor %}
<h3>Taken Exams</h3>
The following exams have been found (click to view answers and scores):
<h3>Exam results</h3>
The following exam results been found (click to view answers and scores):
{% if physics_exams %}
<h4>Physics</h4>
<ul>