How can I implement the json_object_agg() function from PostgreSQL in a Django queryset within a view?
As an example, I\'d like to translate a query similar to the on