﻿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
28233	"Improve the ""price_per_page"" example in the aggregation documentation"	Shi Liu	Rajesh Veeranki	"This example is not very clear. There has been some talk about it: https://groups.google.com/forum/#!topic/django-users/CqEGJCI5aNs

{{{
# Cost per page
>>> from django.db.models import F, FloatField, Sum
>>> Book.objects.all().aggregate(
...    price_per_page=Sum(F('price')/F('pages'), output_field=FloatField()))
{'price_per_page': 0.4470664529184653}
}}}
"	Cleanup/optimization	closed	Documentation	1.11	Normal	fixed	Documentation, Aggregation, Code Example		Ready for checkin	1	0	0	0	1	0
