migrate examinations to generic model (and start adding mangament)
This commit is contained in:
+7
-6
@@ -16,7 +16,7 @@ from sortedm2m.fields import SortedManyToManyField
|
||||
|
||||
import string
|
||||
|
||||
from generic.models import CidUser, CidUserGroup, ExamUserStatus, Examination, ExamBase, QuestionBase, QuestionNote, UserAnswerBase, UserUserGroup
|
||||
from generic.models import CidUser, CidUserGroup, ExamUserStatus, Examination, ExamBase, QuestionBase, QuestionNote, UserAnswerBase, UserUserGroup, Modality
|
||||
|
||||
from collections import defaultdict
|
||||
from helpers.images import image_as_base64
|
||||
@@ -57,11 +57,12 @@ class Region(models.Model):
|
||||
return self.region
|
||||
|
||||
|
||||
class Modality(models.Model):
|
||||
modality = models.CharField(max_length=200)
|
||||
|
||||
def __str__(self):
|
||||
return self.modality
|
||||
## TODO: ??? Move to generic app
|
||||
#class Modality(models.Model):
|
||||
# modality = models.CharField(max_length=200)
|
||||
#
|
||||
# def __str__(self):
|
||||
# return self.modality
|
||||
|
||||
|
||||
class QuestionType(models.Model):
|
||||
|
||||
Reference in New Issue
Block a user