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

@@ -992,7 +992,7 @@ class OrganisationTypeField(GovukRadiosField):
super().__init__(
*args,
choices=[
(value, label) for value, label in Organisation.TYPES
(value, label) for value, label in Organisation.TYPE_LABELS.items()
if not include_only or value in include_only
],
thing='the type of organisation',