diff --git a/.gitignore b/.gitignore index a97f78e..a8abaee 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +.envrc *.swp *.sqlite diff --git a/djautotask/__init__.py b/djautotask/__init__.py index f5747bc..f6c875d 100644 --- a/djautotask/__init__.py +++ b/djautotask/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -VERSION = (1, 5, 2, 'final') +VERSION = (1, 5, 3, 'final') # pragma: no cover if VERSION[-1] != "final": diff --git a/djautotask/api.py b/djautotask/api.py index f715981..aeaf5e6 100644 --- a/djautotask/api.py +++ b/djautotask/api.py @@ -292,12 +292,11 @@ def __init__( if not password: password = settings.AUTOTASK_CREDENTIALS['password'] if not integration_code: - integration_code = settings.AUTOTASK_CREDENTIALS[ - 'integration_code' - ] + integration_code = \ + settings.AUTOTASK_CREDENTIALS['integration_code'] if not rest_api_version: - rest_api_version = settings.AUTOTASK_CREDENTIALS[ - 'rest_api_version'] + rest_api_version = \ + settings.AUTOTASK_CREDENTIALS['rest_api_version'] if not server_url: server_url = get_api_connection_url() @@ -321,7 +320,7 @@ def __init__( def api_base_url(self): return '{0}v{1}/'.format( self.server_url, - settings.AUTOTASK_CREDENTIALS['rest_api_version'], + self.rest_api_version, ) def get_api_url(self, endpoint=None):