feat: base ComplexQueryMixin 支持order查询2
This commit is contained in:
parent
f4fd214110
commit
37dc922c34
|
@ -239,7 +239,7 @@ class ComplexQueryMixin:
|
||||||
sr.is_valid(raise_exception=True)
|
sr.is_valid(raise_exception=True)
|
||||||
vdata = sr.validated_data
|
vdata = sr.validated_data
|
||||||
queryset = self.get_queryset()
|
queryset = self.get_queryset()
|
||||||
querys = vdata.get('query', [])
|
querys = vdata.get('querys', [])
|
||||||
if not querys:
|
if not querys:
|
||||||
new_qs = queryset
|
new_qs = queryset
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue