How do I create a search for a foreignkey in Rest framework? I tried and got “FieldError at /list/ Related Field …: icontains”

后端 未结 0 706
太阳男子
太阳男子 2021-02-02 17:42

this the serializer with the fields added

class ListSerializer(serializers.ModelSerializer):
    user = serializers.ReadOnlyField(source=\'user.u         


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