From 8793f346ba7e9abaf0423fc5a6ebe170a0029843 Mon Sep 17 00:00:00 2001 From: Ross Date: Sat, 17 Feb 2024 23:17:32 +0000 Subject: [PATCH] clean up --- atlas/models.py | 1 - longs/models.py | 1 - physics/models.py | 3 --- rapids/models.py | 3 --- sbas/models.py | 3 --- 5 files changed, 11 deletions(-) diff --git a/atlas/models.py b/atlas/models.py index 44a0b5ff..4f83e0c4 100644 --- a/atlas/models.py +++ b/atlas/models.py @@ -352,7 +352,6 @@ class Case(models.Model, AuthorMixin): help_text="If a case should be freely available to browse", default=True ) - #series = SortedManyToManyField("Series", related_name="case") series = models.ManyToManyField("Series", through="SeriesDetail", related_name="case") notes = GenericRelation(QuestionNote) diff --git a/longs/models.py b/longs/models.py index c4d5dc37..5e06a81c 100644 --- a/longs/models.py +++ b/longs/models.py @@ -422,7 +422,6 @@ class ExamQuestionDetail(models.Model): class Exam(ExamBase): app_name = "longs" - #exam_questions = SortedManyToManyField(Long, related_name="exams", blank="true") exam_questions = models.ManyToManyField(Long, through=ExamQuestionDetail, related_name="exams") time_limit = models.IntegerField( diff --git a/physics/models.py b/physics/models.py index 46cb4d47..40461efb 100644 --- a/physics/models.py +++ b/physics/models.py @@ -10,8 +10,6 @@ from django.urls import reverse from django.utils.translation import gettext_lazy as _ -from sortedm2m.fields import SortedManyToManyField - from generic.models import CidUser, CidUserGroup, ExamBase, ExamCollection, ExamUserStatus, QuestionBase, QuestionNote, UserAnswerBase, UserUserGroup import reversion @@ -149,7 +147,6 @@ class ExamQuestionDetail(models.Model): class Exam(ExamBase): app_name = "physics" - #exam_questions = SortedManyToManyField(Question, related_name="exams", blank="true") exam_questions = models.ManyToManyField(Question, through=ExamQuestionDetail, related_name="exams") time_limit = models.IntegerField( diff --git a/rapids/models.py b/rapids/models.py index d511dff5..7c404c9b 100644 --- a/rapids/models.py +++ b/rapids/models.py @@ -17,8 +17,6 @@ from django.urls import reverse from django.utils.translation import gettext_lazy as _ from django.utils.html import mark_safe -from sortedm2m.fields import SortedManyToManyField - import string from collections import defaultdict from helpers.images import get_image_hash, image_as_base64 @@ -614,7 +612,6 @@ class ExamQuestionDetail(models.Model): class Exam(ExamBase): app_name = "rapids" - #exam_questions = SortedManyToManyField(Rapid, related_name="exams", blank="true") exam_questions = models.ManyToManyField(Rapid, through=ExamQuestionDetail, related_name="exams") time_limit = models.IntegerField( diff --git a/sbas/models.py b/sbas/models.py index 04a33f67..c9f96046 100644 --- a/sbas/models.py +++ b/sbas/models.py @@ -9,8 +9,6 @@ from django.urls import reverse from django.utils.translation import gettext_lazy as _ -from sortedm2m.fields import SortedManyToManyField - from generic.models import CidUser, CidUserGroup, ExamBase, ExamCollection, ExamUserStatus, QuestionBase, QuestionNote, UserAnswerBase, UserUserGroup import reversion @@ -167,7 +165,6 @@ class ExamQuestionDetail(models.Model): class Exam(ExamBase): app_name = "sbas" - #exam_questions = SortedManyToManyField(Question, related_name="exams", blank="true") exam_questions = models.ManyToManyField(Question, through=ExamQuestionDetail, related_name="exams") time_limit = models.IntegerField(