.
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
|
||||
|
||||
@@ -13,7 +14,7 @@ from sortedm2m.fields import SortedManyToManyField
|
||||
|
||||
import string
|
||||
|
||||
from generic.models import Examination, ExamBase
|
||||
from generic.models import Examination, ExamBase, QuestionNote
|
||||
|
||||
from collections import defaultdict
|
||||
from helpers.images import image_as_base64
|
||||
@@ -124,6 +125,8 @@ class AnatomyQuestion(models.Model):
|
||||
related_name="anatomy_authored_questions",
|
||||
)
|
||||
|
||||
notes = GenericRelation(QuestionNote)
|
||||
|
||||
class Meta:
|
||||
permissions = ()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user