diff --git a/apps/jumpserver/settings/libs.py b/apps/jumpserver/settings/libs.py index 5debccc65..35de39b33 100644 --- a/apps/jumpserver/settings/libs.py +++ b/apps/jumpserver/settings/libs.py @@ -44,7 +44,7 @@ REST_FRAMEWORK = { } SWAGGER_SETTINGS = { - 'DEFAULT_AUTO_SCHEMA_CLASS': 'jumpserver.swagger.CustomSwaggerAutoSchema', + 'DEFAULT_AUTO_SCHEMA_CLASS': 'jumpserver.views.swagger.CustomSwaggerAutoSchema', 'USE_SESSION_AUTH': True, 'SECURITY_DEFINITIONS': { 'Bearer': {