[drf]访问文档出现错误'AutoSchema' object has no attribute 'get_link'

  • 报错
'AutoSchema' object has no attribute 'get_link'

REST_FRAMEWORK = {
    'DEFAULT_SCHEMA_CLASS': 'rest_framework.schemas.AutoSchema'
}


REST_FRAMEWORK = {
    'DEFAULT_SCHEMA_CLASS': 'rest_framework.schemas.coreapi.AutoSchema'
}

参考

posted @ 2019-07-26 09:49  毛台  阅读(...)  评论(...编辑  收藏