Merge pull request #3044 from alphagov/count-orgs-and-services-on-choose

Add count of organisations and live services for platform admin user
This commit is contained in:
Chris Hill-Scott
2019-07-09 14:53:17 +01:00
committed by GitHub
13 changed files with 65 additions and 18 deletions

View File

@@ -65,6 +65,9 @@ class Service(JSONModel):
def update(self, **kwargs):
return service_api_client.update_service(self.id, **kwargs)
def update_count_as_live(self, count_as_live):
return service_api_client.update_count_as_live(self.id, count_as_live=count_as_live)
def update_status(self, live):
return service_api_client.update_status(self.id, live=live)