Make organisations natively sortable

This commit is contained in:
Chris Hill-Scott
2021-11-11 14:35:55 +00:00
parent 18dfc44899
commit 0c2b586e40
6 changed files with 45 additions and 21 deletions

View File

@@ -116,7 +116,7 @@ def add_organisation_from_nhs_local_service(service_id):
form = AddNHSLocalOrganisationForm(organisation_choices=[
(organisation.id, organisation.name)
for organisation in AllOrganisations()
for organisation in sorted(AllOrganisations())
if organisation.organisation_type == Organisation.TYPE_NHS_LOCAL
])