[Update] 修改用户列表serializer

pull/3454/head
ibuler 5 years ago
parent 4c801bb828
commit e424315d93

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

Loading…
Cancel
Save