From 08f14bff576d5b21b221653d0dabcddee5066f09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Fri, 5 Aug 2022 13:33:57 +0200 Subject: [PATCH] Fixing up unmanaged actor --- server/src/uds/models/user_service.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/src/uds/models/user_service.py b/server/src/uds/models/user_service.py index 9efdead6..9a9d212e 100644 --- a/server/src/uds/models/user_service.py +++ b/server/src/uds/models/user_service.py @@ -71,10 +71,10 @@ class UserService(UUIDModel): # pylint: disable=too-many-public-methods # The reference to deployed service is used to accelerate the queries for different methods, in fact its redundant cause we can access to the deployed service # through publication, but queries are much more simple - deployed_service: models.ForeignKey['UserService', 'ServicePool'] = models.ForeignKey( + deployed_service: 'models.ForeignKey["UserService", ServicePool]' = models.ForeignKey( ServicePool, on_delete=models.CASCADE, related_name='userServices' ) - publication: models.ForeignKey['UserService', 'ServicePoolPublication'] = ( + publication: 'models.ForeignKey["UserService", ServicePoolPublication]' = ( models.ForeignKey( ServicePoolPublication, on_delete=models.CASCADE, @@ -98,7 +98,7 @@ class UserService(UUIDModel): # pylint: disable=too-many-public-methods state_date = models.DateTimeField(db_index=True) creation_date = models.DateTimeField(db_index=True) data = models.TextField(default='') - user: models.ForeignKey['UserService', 'User'] = models.ForeignKey( + user: 'models.ForeignKey["UserService", User]' = models.ForeignKey( User, on_delete=models.CASCADE, related_name='userServices', @@ -120,7 +120,7 @@ class UserService(UUIDModel): # pylint: disable=too-many-public-methods ) # "fake" declarations for type checking - objects: models.BaseManager['UserService'] + objects: 'models.BaseManager["UserService"]' properties: 'models.QuerySet[UserServiceProperty]' accounting: 'AccountUsage'