def check_attendance_complete(lesson_obj):
    """
    Checks to see if all the attendance has be recorded for a lesson object.
    """
    for assoc in lesson_obj.user_association:
        if assoc.user.get_role() == 'STU':
            # Check to see if it has been set.
            if assoc.attendance_code is None:
                return False

    return True