diff --git a/AKScheduling/models.py b/AKScheduling/models.py index 1495f311935583a945aef0d737ca44e21a0a2663..aa6be3d0398ea82461db295ce9e853dfd27386d9 100644 --- a/AKScheduling/models.py +++ b/AKScheduling/models.py @@ -288,6 +288,8 @@ def ak_requirements_changed_handler(sender, instance: AK, action: str, **kwargs) for slot in slots_of_this_ak: room = slot.room + if room is None: + continue room_requirements = room.properties.all() for requirement in instance.requirements.all():