def METHOD_NAME(request, group, project):
    if request.method == "POST":
        form = ProjectFormAdvanced(request.POST, instance=request.project)
        if form.is_valid():
            form.save()
            return redirect(request.path)
    else:
        form = ProjectFormAdvanced(instance=request.project)
    context = {
        'group': request.group,
        'project': request.project,
        'form': form,
    }
    return render(request, 'squad/project_settings/advanced.jinja2', context)