This commit is contained in:
caoqianming 2020-12-30 17:58:12 +08:00
parent 93f86dfdf7
commit 3b6d6bce6a
1 changed files with 1 additions and 1 deletions

View File

@ -230,7 +230,7 @@ class InspectionViewSet(ModelViewSet):
serializer_class = InspectionSerializer
search_fields = ['dlmc', 'jydx', 'dxxh','jyxmmc','jybz','sszx','sm']
ordering_fields = ['dlmc']
ordering = ['create_time', 'xmxh']
ordering = ['create_time', 'jyxmxh']
filterset_fields = ['sszx']
@action(methods=['post'], detail=False, url_path='deletes', url_name='inspection_deletes', perms_map = {'post':'inspection_deletes'})
def deletes(self, request):