subject = Table1.objects.all().annotate(numItems=Count('table2.field')).order_by('name')
SELECT "table1"."id", "table1"."created_at", "table1"."name", COUNT("table2"."id") AS "numItems" FROM "table1" LEFT OUTER JOIN "table2" ON ("table1"."id" = "table2"."subdomain_id") GROUP BY "table1"."id" ORDER BY "table1"."name" ASCresponse = render(request, 'search_home.html', context)--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-develop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/ab90edb2-7d5e-4e01-9fad-0c71cb916a67o%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CAJP%3DbzCehTLi3znPp%2Bv1zKPJ20VbhbNJS2nEHox%2BPKjMTrhLkA%40mail.gmail.com.
call or replay me I am interested +918709440658
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CAJP%3DbzCehTLi3znPp%2Bv1zKPJ20VbhbNJS2nEHox%2BPKjMTrhLkA%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-develop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/ab90edb2-7d5e-4e01-9fad-0c71cb916a67o%40googlegroups.com.