﻿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
32359	Should we define __round__ on Expression?	Willem Van Onsem	nobody	"Rounding values can be done with:


{{{
from django.db.models.functions import Round

Round(Count('related_model'))
}}}

But we could also implement the __round__ function on the Expression class, and thus use Python's round(...) function, then it thus no longer requires an import:

{{{
round(Count('related_model'))
}}}

A potential problem with this is that people might expect that this will itself return a number-like object, and not an expression."	New feature	closed	Database layer (models, ORM)	dev	Normal	wontfix	aggregates		Unreviewed	0	0	0	0	0	0
