提交 e424315d 编写于 作者: baltery's avatar baltery

[Update] 修改用户列表serializer

上级 4c801bb8
......@@ -27,7 +27,8 @@ class IDSpmFilterMixin:
class SerializerMixin:
def get_serializer_class(self):
if self.request.query_params.get('draw') \
if self.request.method.lower() == 'get' and\
self.request.query_params.get('draw') \
and hasattr(self, 'serializer_display_class'):
return self.serializer_display_class
return super().get_serializer_class()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册