1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-03-20 06:50:23 +03:00

Fixed transport & groups deletion

This commit is contained in:
Adolfo Gómez García 2022-04-12 14:34:06 +02:00
parent cf283bba0f
commit 69ca93586a

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