diff --git a/biscuit/apps/chronos/forms.py b/biscuit/apps/chronos/forms.py index 4f599ca97b77a806d779346971c6be8675a4ca0f..08a1c5c21341380e9efdf9f7938bb51f91c71125 100644 --- a/biscuit/apps/chronos/forms.py +++ b/biscuit/apps/chronos/forms.py @@ -24,4 +24,4 @@ class SelectForm(forms.Form): class LessonSubstitutionForm(forms.ModelForm): class Meta: model = LessonSubstitution - fields = ['week', 'lesson_period', 'subject', 'teachers', 'room', 'canceled'] + fields = ['week', 'lesson_period', 'subject', 'teachers', 'room', 'cancelled'] diff --git a/biscuit/apps/chronos/templates/chronos/tt_lesson.html b/biscuit/apps/chronos/templates/chronos/tt_lesson.html index 077cdade986087d8b8bbc49b3d10dd2190675e67..3dc764830ff17b0abf58f15d202ff4cf0a679b37 100644 --- a/biscuit/apps/chronos/templates/chronos/tt_lesson.html +++ b/biscuit/apps/chronos/templates/chronos/tt_lesson.html @@ -1,6 +1,6 @@ {# -*- engine:django -*- #} -{% if not lesson_period.get_substitution.canceled %} +{% if not lesson_period.get_substitution.cancelled %} <div class="card chronos-lesson {% if lesson_period.get_substitution %} border border-warning