This was a lambda function in coachreports/api_views.py