mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-07 04:28:25 -04:00
Initialise clients outside the app
This avoids the annoying problem where you can’t import a client unless the app has already been initialised.
This commit is contained in:
@@ -27,3 +27,6 @@ class ProviderClient(NotifyAdminAPIClient):
|
||||
}
|
||||
data = _attach_current_user(data)
|
||||
return self.post(url='/provider-details/{}'.format(provider_id), data=data)
|
||||
|
||||
|
||||
provider_client = ProviderClient()
|
||||
|
||||
Reference in New Issue
Block a user