1
0
mirror of https://github.com/dkmstr/openuds.git synced 2024-12-24 21:34:41 +03:00

Merge remote-tracking branch 'origin/v3.5'

This commit is contained in:
Adolfo Gómez García 2022-04-12 14:34:19 +02:00
commit aaa0f004ee

View File

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