mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 20:16:44 +00:00
fix settings call
This commit is contained in:
parent
ea8fd21af0
commit
b48e9bcac9
@ -373,12 +373,12 @@ class APICallMixin:
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def api_url(self):
|
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
|
@property
|
||||||
def api_headers(self):
|
def api_headers(self):
|
||||||
return {
|
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'
|
'Content-Type': 'application/json'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user