django rest framework filter

后端 未结 3 1406
名媛妹妹
名媛妹妹 2020-12-29 23:41

I\'m working with API made from Django rest framework, I am trying to make a filter to a JSON This is my serializers.py file

from rest_framewo         


        
3条回答
  •  萌比男神i
    2020-12-29 23:50

    For me, it works when I put the comma at the end of my filter_fields.

    eg.

    filter_fields = ('distribuidor',)
    

提交回复
热议问题