Decouple the set of org types from their labels

In response to: [^1].

[^1]: https://github.com/alphagov/notifications-admin/pull/4196#discussion_r838383086
This commit is contained in:
Ben Thorner
2022-03-30 13:48:36 +01:00
parent fa01889d01
commit 6030e9e5bb
4 changed files with 18 additions and 15 deletions

View File

@@ -519,7 +519,7 @@ class Service(JSONModel, SortByNameMixin):
@property
def organisation_type_label(self):
return dict(Organisation.TYPES).get(self.organisation_type)
return Organisation.TYPE_LABELS.get(self.organisation_type)
@cached_property
def inbound_number(self):