fix: corregir repeticion del nombre de aula en detalles de reserva y selector

This commit is contained in:
Carlos Tello
2026-09-03 04:42:29 -03:00
parent f3a4b5875e
commit 5e0b905e55
4 changed files with 31 additions and 6 deletions
+1 -1
View File
@@ -410,7 +410,7 @@ def add_reservation():
commissions = Commission.query.filter_by(active=True).all()
# Populate form choices
form.classroom_id.choices = [(c.id, f'{c.code_display} - {c.name} (Cap: {c.capacity})') for c in classrooms]
form.classroom_id.choices = [(c.id, f'{c.building} - {c.code} (Cap: {c.capacity_display})') for c in classrooms]
form.commission_id.choices = [(c.id, f'{c.get_full_code()} - {c.subject.name if c.subject else "No Subject"} (Students: {c.max_students})') for c in commissions]
if request.method == 'POST':