Skip to content

Commit

Permalink
Use DEFAULT_VERSION in management command
Browse files Browse the repository at this point in the history
  • Loading branch information
axnsan12 committed Dec 27, 2018
1 parent e5a569e commit 6df2362
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/drf_yasg/management/commands/generate_swagger.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def handle(self, output_file, overwrite, format, api_url, mock, api_version, use
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

Expand Down

0 comments on commit 6df2362

Please sign in to comment.