Use DEFAULT_VERSION in management command
parent
e5a569ebf7
commit
6df2362156
|
|
@ -141,7 +141,7 @@ class Command(BaseCommand):
|
|||
if mock:
|
||||
request = self.get_mock_request(api_url, format, user)
|
||||
|
||||
|
||||
api_version = api_version or api_settings.DEFAULT_VERSION
|
||||
if request and api_version:
|
||||
request.version = api_version
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue