.
This commit is contained in:
+2
-2
@@ -21,7 +21,7 @@ from django.core.mail import send_mail
|
||||
|
||||
|
||||
class Plane(models.Model):
|
||||
plane = models.CharField(max_length=200)
|
||||
plane = models.CharField(max_length=200, unique=True)
|
||||
|
||||
def __str__(self):
|
||||
return self.plane
|
||||
@@ -31,7 +31,7 @@ class Plane(models.Model):
|
||||
|
||||
|
||||
class Contrast(models.Model):
|
||||
contrast = models.CharField(max_length=200)
|
||||
contrast = models.CharField(max_length=200, unique=True)
|
||||
|
||||
def __str__(self):
|
||||
return self.contrast
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
</tr>
|
||||
{% for user, value in user_answers_marks.items %}
|
||||
<tr>
|
||||
<td><a href="{% url 'cid_scores' user %}">{{user}}</a></td>
|
||||
<td><a href="{% url 'cid_scores_admin' user %}">{{user}}</a></td>
|
||||
<td>{{user_scores|get_item:user}}</td>
|
||||
<td>{{user_scores_normalised|get_item:user}}</td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user