[FIX] read_group cannot aggregate non-stored field

This commit is contained in:
Richard Mathot 2014-08-08 10:53:39 +02:00
parent 3d62ed0aac
commit fed0ea5392
1 changed files with 1 additions and 0 deletions

View File

@ -2105,6 +2105,7 @@ class BaseModel(object):
f for f in fields
if f not in ('id', 'sequence')
if f not in groupby_fields
if f in self._all_columns
if self._all_columns[f].column._type in ('integer', 'float')
if getattr(self._all_columns[f].column, '_classic_write')]