def METHOD_NAME(request, project_id):
    project = get_object_or_404(Project, linkname=project_id)
    context = generic_list(
        request,
        project,
        'patch-list',
        view_args={'project_id': project.linkname},
    )
    if request.user.is_authenticated:
        context['bundles'] = request.user.bundles.all()
    return render(request, 'patchwork/list.html', context)