fix: 修复drf-yasg嵌套序列化器导致Redoc/Swagger 500错误

This commit is contained in:
2026-05-19 14:08:11 +08:00
parent ec7c5c28bb
commit 44d5b08a69
2 changed files with 5 additions and 5 deletions

View File

@@ -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