.
This commit is contained in:
+5
-1
@@ -11,10 +11,12 @@ 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
|
||||
|
||||
from django.contrib.contenttypes.fields import GenericRelation
|
||||
|
||||
class Category(models.Model):
|
||||
category = models.CharField(max_length=200)
|
||||
|
||||
@@ -99,6 +101,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