group by year, month, day in a sqlalchemy

Viewed 20890

I want

DBSession.query(Article).group_by(Article.created.month).all()

But this query can't using

How do I do this using SQLAlchemy?

3 Answers
Related