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