Re: group by "project"

2023-05-25 Thread 'Mohamed Yahiya Shajahan' via Django users
[ { "project": 1, "date": "2023-05-22", "count": 1 }, { "project": 1, "date": "2023-05-27", "count": 1 } ] throws this response. i want gr

Re: group by "project"

2023-05-25 Thread Helly Modi
serialized_data = [] >> for item in queryset: >> serialized_item = { >> 'date': item['date'], >> 'project': item['project'] >> } >> serialized_data.append(serialized_item) >&g

Re: group by "project"

2023-05-24 Thread Muhammad Juwaini Abdul Rahman
} > 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

group by "project"

2023-05-24 Thread 'Mohamed Yahiya Shajahan' via Django users
': 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