Compare commits
2 Commits
8943443e24
...
2799e85605
| Author | SHA1 | Date |
|---|---|---|
|
|
2799e85605 | |
|
|
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):
|
||||
|
|
@ -109,4 +110,5 @@ class PlatstandingViewSet(CustomModelViewSet):
|
|||
queryset = Platstanding.objects.all()
|
||||
serializer_class = PlatstandingSerializer
|
||||
filterset_fields = ["name", "city_p", "province_p"]
|
||||
ordering = ["-create_time", "name"]
|
||||
ordering = ["-create_time", "name"]
|
||||
search_fields = ["name", "city_p", "province_p"]
|
||||
Loading…
Reference in New Issue