This commit is contained in:
Ross
2021-05-03 11:36:13 +01:00
parent 4a0affd265
commit 97e8a58237
2 changed files with 9 additions and 4 deletions
+8
View File
@@ -13,6 +13,7 @@ from sortedm2m.fields import SortedManyToManyField
from generic.models import ExamBase
import reversion
class Category(models.Model):
category = models.CharField(max_length=200)
@@ -126,6 +127,7 @@ class Question(models.Model):
return (self.a, self.b, self.c, self.d, self.e)
@reversion.register
class Exam(ExamBase):
app_name = "rapids"
@@ -141,6 +143,12 @@ class Exam(ExamBase):
recreate_json = None
author = models.ManyToManyField(settings.AUTH_USER_MODEL,
blank=True,
help_text='Author of exam',
related_name="rapid_exam_author")
class CidUserAnswer(models.Model):
"""User answers by candidate"""