Skip to content
Snippets Groups Projects
Commit 4b673faa authored by root's avatar root
Browse files

Bug fix

parent 925ca2a4
No related branches found
No related tags found
1 merge request!86Merge school-apps
......@@ -24,7 +24,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Provided by secure_settings
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False
DEBUG = True
# PDB debugger option
POST_MORTEM = True
......
......@@ -41,7 +41,8 @@ class LessonElementContainer(object):
self.room = room
self.substitution = substitution
self.is_old = False
self.classes_formatted = format_classes(self.element.classes)
if self.element is not None:
self.classes_formatted = format_classes(self.element.classes)
def parse_lesson_times():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment