Change grade query

Allow multiple grades for the same course.