Skip to content
Snippets Groups Projects

WIP: Add way to edit substitution

Merged Tom Teichler requested to merge issue12 into master
from __future__ import annotations
from typing import Optional
from django.utils.translation import ugettext_lazy as _
@@ -7,7 +9,7 @@ from django_tables2.utils import A
from .models import LessonPeriod
def _css_class_from_lesson_state(record: Optional[LessonPeriod] = None, table: Optional[LessonTable] = None) -> str:
def _css_class_from_lesson_state(record: Optional[LessonPeriod] = None, table: Optional[LessonsTable] = None) -> str:
if record.get_substitution(table._week):
return 'table-warning'
else:
Loading