Fixed calendar action delete all groups

This commit is contained in:
Adolfo Gómez García 2022-04-08 15:29:13 +02:00
parent 9abaada7cb
commit cf283bba0f

View File

@ -356,7 +356,7 @@ class CalendarAction(UUIDModel):
executed = True executed = True
elif CALENDAR_ACTION_DEL_ALL_GROUPS['id'] == self.action: elif CALENDAR_ACTION_DEL_ALL_GROUPS['id'] == self.action:
# 3.- Remove all groups # 3.- Remove all groups
self.service_pool.assignedGroups.all().detete() self.service_pool.assignedGroups.all().delete()
saveServicePool = False saveServicePool = False
executed = True executed = True
else: # Add/remove transport or group else: # Add/remove transport or group