fix time table

This commit is contained in:
Alejandro Vazquez
2026-03-27 18:30:04 -03:00
parent 68e8d81617
commit 79f5da9bcd
8 changed files with 713 additions and 237 deletions
+2 -2
View File
@@ -61,8 +61,8 @@ class Commission(db.Model):
def is_active(self, value):
self.active = value
# Relationships
reservations = db.relationship('Reservation', backref='commission', lazy=True, cascade='all, delete-orphan')
# Relationships
pass # Reservation already defines the relationship back to commission
teacher = db.relationship('User', backref='teaching_commissions', foreign_keys=[teacher_id])
# Virtual field for teacher_name