Now the tastypie API for calculate allcourses and passedcourses admits user_id or user_email