Looping over Queryset does not append to list

前端 未结 0 925
天涯浪人
天涯浪人 2021-01-12 07:29

I have the following code in my view

def pie_chart(request):
labels = []
data = []

queryset = BBSO_Records.objects.all()
for sos in queryset:
    labels.appe         


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