fix: update class teacher assignment and enhance UI for teacher selection
All checks were successful
Build & Push / Build & Push image (push) Successful in 40s

This commit is contained in:
2026-03-05 23:41:05 +01:00
parent 4bfa3cd486
commit 653cc6cd74
2 changed files with 13 additions and 3 deletions

View File

@@ -475,7 +475,7 @@ def set_class_teachers(class_id):
User.school_id == current_user.school_id,
User.is_active == True,
).all()
klas.users = teachers
klas.teachers = teachers
audit_log('class.user_assignment', 'class', target_id=str(class_id),
detail={'class_name': klas.name, 'teacher_ids': user_ids,
'teacher_names': [t.full_name for t in teachers]})