.
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user