get ready for django 5
This commit is contained in:
+9
-12
@@ -19,8 +19,6 @@ from django.utils.html import mark_safe
|
||||
|
||||
from django.core.exceptions import ValidationError
|
||||
|
||||
from sortedm2m.fields import SortedManyToManyField
|
||||
|
||||
import string
|
||||
from collections import defaultdict
|
||||
from helpers.images import image_as_base64, pretty_print_dicom
|
||||
@@ -129,7 +127,6 @@ class Long(QuestionBase):
|
||||
default=1, help_text="Auto incrementing json creation number"
|
||||
)
|
||||
|
||||
#series = SortedManyToManyField("LongSeries", related_name="long")
|
||||
series = models.ManyToManyField("LongSeries", through="SeriesDetail", related_name="long")
|
||||
|
||||
# question_file = models.FileField(upload_to=question_file_directory_path, blank=True, null=True)
|
||||
@@ -609,15 +606,15 @@ class UserAnswer(UserAnswerBase):
|
||||
|
||||
class ScoreOptions(models.TextChoices):
|
||||
UNMARKED = "", _("Unmarked")
|
||||
FOUR = 4, _("4")
|
||||
FOUR_HALF = 4.5, _("4.5")
|
||||
FIVE = 5, _("5")
|
||||
FIVE_HALF = 5.5, _("5.5")
|
||||
SIX = 6, _("6")
|
||||
SIX_HALF = 6.5, _("6.5")
|
||||
SEVEN = 7, _("7")
|
||||
SEVEN_HALF = 7.5, _("7.5")
|
||||
EIGHT = 8, _("8")
|
||||
FOUR = "4", _("4")
|
||||
FOUR_HALF = "4.5", _("4.5")
|
||||
FIVE = "5", _("5")
|
||||
FIVE_HALF = "5.5", _("5.5")
|
||||
SIX = "6", _("6")
|
||||
SIX_HALF = "6.5", _("6.5")
|
||||
SEVEN = "7", _("7")
|
||||
SEVEN_HALF = "7.5", _("7.5")
|
||||
EIGHT = "8", _("8")
|
||||
|
||||
score = models.CharField(
|
||||
max_length=3,
|
||||
|
||||
Reference in New Issue
Block a user