continue building examcollections

This commit is contained in:
Ross
2024-02-05 18:30:35 +00:00
parent 269a86c25b
commit b1da429036
30 changed files with 546 additions and 70 deletions
@@ -0,0 +1,18 @@
# Generated by Django 4.1.4 on 2024-02-05 10:23
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('anatomy', '0012_alter_exam_exam_collection'),
]
operations = [
migrations.RenameField(
model_name='exam',
old_name='exam_collection',
new_name='examcollection',
),
]
+1 -1
View File
@@ -404,7 +404,7 @@ class Exam(ExamBase):
exam_user_status = GenericRelation(ExamUserStatus)
exam_collection = models.ForeignKey(ExamCollection, blank=True, null=True, on_delete=models.SET_NULL, related_name="anatomy_exams")
examcollection = models.ForeignKey(ExamCollection, blank=True, null=True, on_delete=models.SET_NULL, related_name="anatomy_exams")
def get_exam_json(self, based=True):
questions = self.exam_questions.all()