.
This commit is contained in:
+4
-1
@@ -19,8 +19,9 @@ import string
|
|||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
from helpers.images import image_as_base64
|
from helpers.images import image_as_base64
|
||||||
|
|
||||||
|
from django.contrib.contenttypes.fields import GenericRelation
|
||||||
|
|
||||||
from generic.models import Site, Condition, Sign, ExamBase
|
from generic.models import Site, Condition, Sign, ExamBase, QuestionNote
|
||||||
|
|
||||||
import reversion
|
import reversion
|
||||||
|
|
||||||
@@ -178,6 +179,8 @@ class Rapid(models.Model):
|
|||||||
help_text="If a question should be freely available to browse", default=True
|
help_text="If a question should be freely available to browse", default=True
|
||||||
)
|
)
|
||||||
|
|
||||||
|
question_note = GenericRelation(QuestionNote)
|
||||||
|
|
||||||
|
|
||||||
def get_absolute_url(self):
|
def get_absolute_url(self):
|
||||||
return reverse('rapids:question_detail', kwargs={'pk': self.pk})
|
return reverse('rapids:question_detail', kwargs={'pk': self.pk})
|
||||||
|
|||||||
Reference in New Issue
Block a user