<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def add_access_policy_filter(request, query, column_name):
 """Filter records that do not have ``read`` or better access for one or more of the active subjects. Since ``read`` is the lowest access level that a subject can have, this method only has to filter on the presence of the subject. """

    q = d1_gmn.app.models.Subject.objects.filter(
        subject__in=request.all_subjects_set
    ).values('permission__sciobj')
    filter_arg = '{}__in'.format(column_name)
    return query.filter(**{filter_arg: q})