mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-23 09:29:14 -04:00
Get organisations list from API rather than config
Hard coding the organisations means this information is duplicated between the admin and the API, and could get out of sync.
This commit is contained in:
@@ -16,3 +16,6 @@ class OrganisationsClient(NotifyAdminAPIClient):
|
||||
|
||||
def get_organisations(self):
|
||||
return self.get(url='/organisation')['organisations']
|
||||
|
||||
def get_letter_organisations(self):
|
||||
return self.get(url='/dvla_organisations')
|
||||
|
||||
Reference in New Issue
Block a user