Is there any way to write an API that sends a list of objects without using serializers

前端 未结 0 431
鱼传尺愫
鱼传尺愫 2020-12-17 07:19

I tried to do this:

    indata=[]
    for inc in Income.objects.filter(wallet=this_wallet):
        indict= {}
        indict= {\'id\': inc.id,
                       


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