mirror of
https://github.com/GSA/notifications-admin.git
synced 2025-12-15 17:44:03 -05: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:
@@ -57,3 +57,6 @@ class InviteApiClient(NotifyAdminAPIClient):
|
||||
invited_user = InvitedUser(**invite)
|
||||
invited_users.append(invited_user)
|
||||
return invited_users
|
||||
|
||||
|
||||
invite_api_client = InviteApiClient()
|
||||
|
||||
Reference in New Issue
Block a user