[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  mmaotai  阅读(6059)  评论(0编辑  收藏  举报