From b48e9bcac9cf8417cf51ba44f3f0577d2cc1fa89 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 9 Jan 2022 03:33:47 +0100 Subject: [PATCH] fix settings call --- InvenTree/plugin/builtin/integration/mixins.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/InvenTree/plugin/builtin/integration/mixins.py b/InvenTree/plugin/builtin/integration/mixins.py index 22ba6de27d..c8bb9f7f9e 100644 --- a/InvenTree/plugin/builtin/integration/mixins.py +++ b/InvenTree/plugin/builtin/integration/mixins.py @@ -373,12 +373,12 @@ class APICallMixin: @property def api_url(self): - return f'{self.API_METHOD}://{self.get_globalsetting(self.API_URL_SETTING)}' + return f'{self.API_METHOD}://{self.get_setting(self.API_URL_SETTING)}' @property def api_headers(self): return { - self.API_TOKEN: self.get_globalsetting(self.API_TOKEN_SETTING), + self.API_TOKEN: self.get_setting(self.API_TOKEN_SETTING), 'Content-Type': 'application/json' }