Skip to content
Snippets Groups Projects

Add function to cancel lessons. Closes #25.

Merged Tom Teichler requested to merge issue25 into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -133,7 +133,7 @@ class LessonSubstitution(SchoolRelated):
'lesson_period__period__weekday', 'lesson_period__period__period']
constraints = [
models.CheckConstraint(
check=Q(cancelled=False, subject__isnull=False) | Q(cancelled=True, subject__isnull=True, room__isnull=True),
check=~Q(cancelled=True, subject__isnull=False),
name='either_substituted_or_cancelled'
)
]
Loading