Use DEFAULT_VERSION in management command
This commit is contained in:
1 parent
e5a569ebf7
commit
6df2362156
1 file changed
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user