maybe refactor this into a class function in student.models.CourseEnrollment?