From b3353d7e52229c593b60923eda6c3393f95298cb Mon Sep 17 00:00:00 2001 From: Vikrant Kumar Date: Wed, 7 Oct 2026 07:58:49 +0530 Subject: [PATCH] Let create_batch's duplicate check account for curriculum Batch uniqueness was relaxed to (name, discipline, year, curriculum) so a discipline can run two curricula in the same batch year, but this view's own hand-rolled duplicate check still only looked at (name, discipline, year), rejecting the second curriculum's batch before it ever reached the database. --- .../programme_curriculum/api/views_student_management.py | 1 + 1 file changed, 1 insertion(+) diff --git a/FusionIIIT/applications/programme_curriculum/api/views_student_management.py b/FusionIIIT/applications/programme_curriculum/api/views_student_management.py index 0f86a50b0..50d11c1b8 100644 --- a/FusionIIIT/applications/programme_curriculum/api/views_student_management.py +++ b/FusionIIIT/applications/programme_curriculum/api/views_student_management.py @@ -2939,6 +2939,7 @@ def create_batch(request): name=batch_name, discipline=discipline_obj, year=year, + curriculum=curriculum_obj, running_batch=True ).first()