From 8d6f34cc99399ee06b0518d6a950a8ac4f19ef0f Mon Sep 17 00:00:00 2001
From: Tom Teichler <tom.teichler@teckids.org>
Date: Sat, 31 Aug 2019 21:41:13 +0200
Subject: [PATCH] Fix table.

---
 biscuit/apps/chronos/tables.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/biscuit/apps/chronos/tables.py b/biscuit/apps/chronos/tables.py
index f6e541e6..90075c03 100644
--- a/biscuit/apps/chronos/tables.py
+++ b/biscuit/apps/chronos/tables.py
@@ -6,8 +6,8 @@ class LessonsTable(tables.Table):
     class Meta:
         attrs = {'class': 'table table-striped table-bordered table-hover table-responsive-xl'}
 
-    period__period = tables.Column()
-    lesson__groups = tables.Column()
-    lesson_teachers = tables.Column()
-    lesson_subject = tables.Column()
-    room = tables.Column()
+    period__period = tables.Column(accessor='period.period')
+    lesson__groups = tables.Column(accessor='lesson.groups')
+    lesson__teachers = tables.Column(accessor='lesson.teachers')
+    lesson__subject = tables.Column(accessor='lesson.subject')
+    room = tables.Column(accessor='room')
-- 
GitLab