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

This commit is contained in:
Adolfo Gómez García 2020-10-20 11:10:20 +02:00
commit 48e0577e9f

View File

@ -101,7 +101,8 @@ class ServicesUsage(DetailHandler):
userServicesQuery = UserService.objects.filter(deployed_service__service_uuid=processUuid(item))
return [ServicesUsage.itemToDict(k) for k in userServicesQuery.filter(state=State.USABLE).order_by('creation_date').
prefetch_related('deployed_service').prefetch_related('deployed_service__service').prefetch_related('properties')]
prefetch_related('deployed_service').prefetch_related('deployed_service__service').prefetch_related('properties').
prefetch_related('user').prefetch_related('user__manager')]
except Exception:
logger.exception('getItems')