feat: fix 修改 srm 的 views
This commit is contained in:
parent
eca63e993d
commit
097adb063e
|
|
@ -99,6 +99,7 @@ class PlatformViewSet(CustomModelViewSet):
|
|||
serializer_class = PlatformSerializer
|
||||
filterset_fields = ["p_dept"]
|
||||
ordering = ["-create_time", "p_dept"]
|
||||
search_fields = ["p_dept"]
|
||||
|
||||
|
||||
class PlatstandingViewSet(CustomModelViewSet):
|
||||
|
|
@ -110,3 +111,4 @@ class PlatstandingViewSet(CustomModelViewSet):
|
|||
serializer_class = PlatstandingSerializer
|
||||
filterset_fields = ["name", "city_p", "province_p"]
|
||||
ordering = ["-create_time", "name"]
|
||||
search_fields = ["name", "city_p", "province_p"]
|
||||
Loading…
Reference in New Issue