Fix API documentation rendering (#15116) (#15726)

* Fix API documentation rendering related #15116

* Fix tests and formatting issues #15116
This commit is contained in:
Roman Petrakov
2025-01-07 21:09:18 +01:00
committed by GitHub
parent 2186c24c8f
commit 56079612c8
3 changed files with 34 additions and 38 deletions

View File

@@ -162,9 +162,9 @@ def get_view_description(view, html=False):
def get_default_schema():
if settings.SETTINGS_MODULE == 'awx.settings.development':
from awx.api.swagger import AutoSchema
from awx.api.swagger import schema_view
return AutoSchema()
return schema_view
else:
return views.APIView.schema