mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
fix settings call
This commit is contained in:
parent
ea8fd21af0
commit
b48e9bcac9
@ -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'
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user