Transform this to django query | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Transform this to django query

SELECT products.name, products.modified, count(licenses.id) AS license_count FROM products JOIN licenses ON products.id=licenses.product_id GROUP BY products.name; I need to execute that using django framework

18th Feb 2019, 8:58 PM
Toni Isotalo
Toni Isotalo - avatar
1 Answer
+ 4
I would try the queryset api. But I have no means to test it. https://docs.djangoproject.com/en/2.1/ref/models/querysets/
23rd Feb 2019, 3:12 AM
Tibor Santa
Tibor Santa - avatar