Skip to content
Snippets Groups Projects

WIP: Add way to edit substitution

Merged Tom Teichler requested to merge issue12 into master
3 files
+ 13
9
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -26,8 +26,8 @@ class LessonsTable(tables.Table):
lesson__teachers = tables.Column(accessor='lesson.teacher_names', verbose_name=_('Teachers'))
lesson__subject = tables.Column(accessor='lesson.subject')
room = tables.Column(accessor='room')
edit = tables.LinkColumn('edit_substitution_by_id', args=[A('id')])
edit_substitution = tables.LinkColumn('edit_substitution_by_id', args=[A('id')], text=_('Substitution'))
def __init__(self, week, *args, **kwargs):
self._week = week
self.edit_substitution.args.append(week)
super().__init__(*args, **kwargs)
Loading