This commit is contained in:
Ross
2021-05-02 16:12:30 +01:00
parent 74aa6c7afc
commit a537561217
6 changed files with 37 additions and 73 deletions
+4
View File
@@ -18,6 +18,8 @@ from generic.models import Examination, ExamBase
from collections import defaultdict
from helpers.images import image_as_base64
import reversion
image_storage = FileSystemStorage(
# Physical file location ROOT
location=u"{0}/".format(settings.MEDIA_ROOT),
@@ -66,6 +68,7 @@ class QuestionType(models.Model):
return self.text
@reversion.register
class AnatomyQuestion(models.Model):
# author = models.ForeignKey('auth.User', on_delete=models.CASCADE)
# image = models.ImageField()
@@ -269,6 +272,7 @@ class Answer(models.Model):
# self.answer.strip()
@reversion.register
class Exam(ExamBase):
app_name = "anatomy"