def grade_change(request, course_slug, activity_slug, userid):
    """
    Produce grade change form
    """
    course = get_object_or_404(CourseOffering, slug=course_slug)
    activity = get_object_or_404(LetterActivity, slug=activity_slug, offering=course, deleted=False)
    member = get_object_or_404(Member, ~Q(role='DROP'), find_member(userid), offering__slug=course_slug)
    user = Person.objects.get(userid=request.user.username)
    grades = LetterGrade.objects.filter(activity_id=activity.id, member=member).exclude(flag='NOGR')
    if grades:
        grade = grades[0].letter_grade
    else:
        grade = None