Include live/trial mode in list of services

We need this so we can check in the admin whether users have any live
services.
This commit is contained in:
Chris Hill-Scott
2018-12-13 11:09:47 +00:00
parent 4ddd38b440
commit 2f4f381fa4
2 changed files with 16 additions and 8 deletions

View File

@@ -449,7 +449,8 @@ def get_orgs_and_services(user):
'services': [
{
'id': service.id,
'name': service.name
'name': service.name,
'restricted': service.restricted,
}
for service in org.services
if service.active and service in user.services
@@ -460,7 +461,8 @@ def get_orgs_and_services(user):
'services_without_organisations': [
{
'id': service.id,
'name': service.name
'name': service.name,
'restricted': service.restricted,
} for service in user.services
if (
service.active and