.
This commit is contained in:
@@ -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,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>
|
||||
|
||||
Reference in New Issue
Block a user