1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-10-12 07:33:39 +03:00

updated tests and more refactoring

This commit is contained in:
Adolfo Gómez García
2024-01-05 01:02:11 +01:00
parent a7dc47dd6e
commit bac161b46c
60 changed files with 396 additions and 396 deletions

View File

@@ -356,7 +356,7 @@ class Services(DetailHandler): # pylint: disable=too-many-public-methods
'user_services_count': i.userServices.exclude(
state__in=(State.REMOVED, State.ERROR)
).count(),
'state': _('With errors') if i.isRestrained() else _('Ok'),
'state': _('With errors') if i.is_restrained() else _('Ok'),
}
)
except AccessDenied: