continue building examcollections
This commit is contained in:
@@ -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 = [
|
||||
('longs', '0015_exam_exam_collection'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RenameField(
|
||||
model_name='exam',
|
||||
old_name='exam_collection',
|
||||
new_name='examcollection',
|
||||
),
|
||||
]
|
||||
+1
-1
@@ -456,7 +456,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="longs_exams")
|
||||
examcollection = models.ForeignKey(ExamCollection, blank=True, null=True, on_delete=models.SET_NULL, related_name="longs_exams")
|
||||
|
||||
def get_exam_question_json(self, question_id):
|
||||
q = get_object_or_404(Long, pk=question_id)
|
||||
|
||||
@@ -14,7 +14,7 @@ from rich.pretty import pprint
|
||||
|
||||
from bs4 import BeautifulSoup
|
||||
|
||||
from longs.views import GenericExamViews as LongExamViews
|
||||
from longs.views import GenericExamViews as LongsExamViews
|
||||
|
||||
from longs.models import (
|
||||
AnswerMarks,
|
||||
@@ -39,7 +39,7 @@ APP_NAME = "longs"
|
||||
|
||||
|
||||
def create_exam(db):
|
||||
exam: Exam = LongExamViews.Exam.objects.create(
|
||||
exam: Exam = LongsExamViews.Exam.objects.create(
|
||||
name="Cid Exam", exam_mode=True, active=True
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user