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:
@@ -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:
|
||||
|
Reference in New Issue
Block a user