Commit e424315d authored by ibuler's avatar ibuler

[Update] 修改用户列表serializer

parent 4c801bb8
...@@ -27,7 +27,8 @@ class IDSpmFilterMixin: ...@@ -27,7 +27,8 @@ class IDSpmFilterMixin:
class SerializerMixin: class SerializerMixin:
def get_serializer_class(self): 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'): and hasattr(self, 'serializer_display_class'):
return self.serializer_display_class return self.serializer_display_class
return super().get_serializer_class() return super().get_serializer_class()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment