[
{
"project": 1,
"date": "2023-05-22",
"count": 1
},
{
"project": 1,
"date": "2023-05-27",
"count": 1
}
]
throws this response. i want gr
serialized_data = []
>> for item in queryset:
>> serialized_item = {
>> 'date': item['date'],
>> 'project': item['project']
>> }
>> serialized_data.append(serialized_item)
>&g
}
> serialized_data.append(serialized_item)
> return Response(serialized_data)
>
>
> this is my views i want to group by "project" but shows only one record,
> i know there are multiple records there
>
>
>
> The content of this email is
': item['date'],
'project': item['project']
}
serialized_data.append(serialized_item)
return Response(serialized_data)
this is my views i want to group by "project" but shows only one record,
i know there are multiple records there
--
T
4 matches
Mail list logo