M
M
MOV_UA2020-01-13 13:46:10
Django
MOV_UA, 2020-01-13 13:46:10

How to group QuerySet data?

Есть
<QuerySet [(666, 6), (668, 6), (670, 6), (681, 6), (692, 6), (567, 5), (543, 5)]>
Надо
[(6, [666, 668, 670, 681, 692]), (5, [567, 543])]

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2020-01-13
@dimonchik2013

query or post-processing

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question