.
This commit is contained in:
+4
-1
@@ -1,3 +1,4 @@
|
||||
from django.contrib.contenttypes.fields import GenericRelation
|
||||
from django.db import models
|
||||
from django.utils import timezone
|
||||
|
||||
@@ -11,7 +12,7 @@ from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from sortedm2m.fields import SortedManyToManyField
|
||||
|
||||
from generic.models import ExamBase
|
||||
from generic.models import ExamBase, QuestionNote
|
||||
|
||||
import reversion
|
||||
|
||||
@@ -102,6 +103,8 @@ class Question(models.Model):
|
||||
Category, on_delete=models.SET_NULL, null=True, blank=True
|
||||
)
|
||||
|
||||
notes = GenericRelation(QuestionNote)
|
||||
|
||||
def __str__(self):
|
||||
return self.stem
|
||||
|
||||
|
||||
Reference in New Issue
Block a user