diff --git a/generic/models.py b/generic/models.py index f6dac691..07147ce9 100644 --- a/generic/models.py +++ b/generic/models.py @@ -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 diff --git a/longs/templates/longs/exam_scores.html b/longs/templates/longs/exam_scores.html index 9273e378..c98f14fc 100644 --- a/longs/templates/longs/exam_scores.html +++ b/longs/templates/longs/exam_scores.html @@ -32,7 +32,7 @@ {% for user, value in user_answers_marks.items %}