fix: smart CBT result/back routing for DPPs and add Test Type selector in Admin panel

This commit is contained in:
2026-07-27 15:55:54 +05:30
parent 053b727725
commit 62d15c85f6
5 changed files with 40 additions and 7 deletions

View File

@@ -646,6 +646,7 @@ class ManualQuestionInput(BaseModel):
class ManualTestCreate(BaseModel):
title: str
type: str = "CBT"
exam_pattern: str
time_limit: int
scheduled_date: Optional[datetime] = None
@@ -707,7 +708,7 @@ def create_manual_test(
# 1. Create the test object
test_obj = models.Test(
title=data.title,
type="Mock",
type=data.type,
exam_pattern=models.ExamEnum(data.exam_pattern),
sections={},
total_time=data.time_limit,