1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-01-03 01:17:56 +03:00

Fixed image removal on service pool group

This commit is contained in:
Adolfo Gómez García 2016-07-11 12:43:22 +02:00
parent 50e368ee7a
commit 622e8629ff

View File

@ -98,7 +98,7 @@ class ServicesPoolGroups(ModelHandler):
'priority': item.priority,
'name': item.name,
'comments': item.comments,
'image_id': item.image.uuid,
'image_id': item.image.uuid if item.image is not None else None,
}
def item_as_dict_overview(self, item):
@ -107,5 +107,5 @@ class ServicesPoolGroups(ModelHandler):
'priority': item.priority,
'name': item.name,
'comments': item.comments,
'thumb': item.image.thumb64,
'thumb': item.thumb64,
}