TestResult question
This commit is contained in:
1 parent
9a21d5bf20
commit
4751f25a1e
2 files changed
+33
-1
No files matched your search
@@ -102,7 +102,8 @@ class TestAttempt(models.Model):
|
||||
class TestResult(models.Model):
|
||||
"""the result for a specific answer within an attempt"""
|
||||
attempt = models.ForeignKey(TestAttempt, on_delete=models.CASCADE, related_name='test_results')
|
||||
answer = models.ForeignKey(TestAnswer, on_delete=models.CASCADE)
|
||||
question = models.ForeignKey(TestQuestion, on_delete=models.CASCADE, null=True, blank=True)
|
||||
answer = models.ForeignKey(TestAnswer, on_delete=models.CASCADE, null=True)
|
||||
comment = models.TextField(null=True, blank=True)
|
||||
|
||||
def __str__(self):
|
||||
|
||||
Reference in new issue
Block a user