create base useranswer class
This commit is contained in:
+2
-9
@@ -34,6 +34,7 @@ from generic.models import (
|
||||
#Sign,
|
||||
ExamBase,
|
||||
QuestionNote,
|
||||
CidUserAnswerBase,
|
||||
UserUserGroup,
|
||||
)
|
||||
|
||||
@@ -768,7 +769,7 @@ class Exam(ExamBase):
|
||||
|
||||
|
||||
@reversion.register
|
||||
class CidUserAnswer(models.Model):
|
||||
class CidUserAnswer(CidUserAnswerBase):
|
||||
"""User answers by candidate"""
|
||||
|
||||
question = models.ForeignKey(
|
||||
@@ -781,11 +782,6 @@ class CidUserAnswer(models.Model):
|
||||
|
||||
answer_compare = models.TextField(max_length=500, blank=True)
|
||||
|
||||
cid = models.BigIntegerField(
|
||||
blank=True,
|
||||
null=True,
|
||||
help_text="Candidate ID (limitied by BigIntegerField size)",
|
||||
)
|
||||
|
||||
user = models.ForeignKey(
|
||||
settings.AUTH_USER_MODEL,
|
||||
@@ -800,9 +796,6 @@ class CidUserAnswer(models.Model):
|
||||
Exam, related_name="cid_user_answers", on_delete=models.CASCADE, null=True
|
||||
)
|
||||
|
||||
created = models.DateTimeField(auto_now_add=True)
|
||||
updated = models.DateTimeField(auto_now=True)
|
||||
|
||||
score = models.CharField(
|
||||
max_length=1,
|
||||
choices=Answer.MarkOptions.choices,
|
||||
|
||||
Reference in New Issue
Block a user