'This returns the certificate for a student for a particular course
or None if no such certificate exits.'

@classmethod
def certificate_for_student(cls, student, course_id):

    try:
        return cls.objects.get(user=student, course_id=course_id)
    except cls.DoesNotExist:
        pass
    return None
