rest_framework.permissions IsAuthenticated
rest_framework mixins
django_filters.rest_framework DjangoFilterBackend
rest_framework filters
(mixins.ListModelMixinmixins.RetrieveModelMixinviewsets.GenericViewSet):
permission_classes = (IsAuthenticated)
queryset = Warehouse.objects.all()
serializer_class = WarehouseSerializer
filter_backends = (DjangoFilterBackendfilters.OrderingFilter)
filter_fields = ()
添加回答
举报
0/150
提交
取消