﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
31873	Count in query giving undesired results across models	nikijoe	nobody	I have models Bill and BillProducts, having Foreignkey relation to Bill with fieldname bill. If i try count = BillProducts.objects.aggregate(billcount=Count('bill')) it is giving wrong results. But count = Bill.objects.aggregate(billcount=Count('id')) giving correct results.	Uncategorized	closed	Database layer (models, ORM)	3.1	Normal	invalid	model query		Unreviewed	0	0	0	0	0	0
