Skip to content
Snippets Groups Projects
Commit 9668650f authored by Felix Blanke's avatar Felix Blanke
Browse files

Fix bug that assigned time but not assigned room crashes

parent 5c7c20c4
Branches
No related tags found
1 merge request!268Merge fork for interoperability of KoMa solver
...@@ -288,6 +288,8 @@ def ak_requirements_changed_handler(sender, instance: AK, action: str, **kwargs) ...@@ -288,6 +288,8 @@ def ak_requirements_changed_handler(sender, instance: AK, action: str, **kwargs)
for slot in slots_of_this_ak: for slot in slots_of_this_ak:
room = slot.room room = slot.room
if room is None:
continue
room_requirements = room.properties.all() room_requirements = room.properties.all()
for requirement in instance.requirements.all(): for requirement in instance.requirements.all():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment