mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-11 18:37:33 -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:
@@ -50,3 +50,6 @@ class EmailBrandingClient(NotifyAdminAPIClient):
|
||||
"brand_type": brand_type
|
||||
}
|
||||
return self.post(url="/email-branding/{}".format(branding_id), data=data)
|
||||
|
||||
|
||||
email_branding_client = EmailBrandingClient()
|
||||
|
||||
Reference in New Issue
Block a user