Update django_orm.py

Allow passing of a function as a transform to generate SQL for a GroupBy statement