Return org_type in list of all organisations

This will let us do some filtering of this list in the admin. It’s
better to do it there because it means the admin can use the same cached
response from Redis each time.
This commit is contained in:
Chris Hill-Scott
2019-09-05 16:04:14 +01:00
parent 6e6b7584cf
commit c032ef215a
2 changed files with 12 additions and 1 deletions

View File

@@ -427,6 +427,7 @@ class Organisation(db.Model):
'active': self.active,
'count_of_live_services': len(self.live_services),
'domains': self.domain_list,
'organisation_type': self.organisation_type,
}