fix: 修复drf-yasg嵌套序列化器导致Redoc/Swagger 500错误
This commit is contained in:
@@ -7,6 +7,8 @@ from rest_framework import viewsets, status, parsers, renderers
|
||||
from rest_framework.decorators import action, api_view, parser_classes
|
||||
from rest_framework.response import Response
|
||||
from rest_framework.permissions import IsAuthenticatedOrReadOnly, IsAuthenticated
|
||||
from drf_yasg.utils import swagger_auto_schema
|
||||
from drf_yasg import openapi as swagger_openapi
|
||||
from openpyxl import Workbook, load_workbook
|
||||
from openpyxl.styles import Font
|
||||
import pandas as pd
|
||||
|
||||
Reference in New Issue
Block a user