Django Rest: passing queryset to hyperlinked model serializer

后端 未结 0 878
余生分开走
余生分开走 2021-02-02 18:28
class JobViewSet(viewsets.ModelViewSet):
    queryset = models.Job.objects.all()
    serializer_class = serializers.JobSerializer

    @action(methods=["get"],         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题