

@team_required
@login_required
def team_update(request):
    team = form.team
    if (not team.is_owner_or_manager(request.user)):
        return HttpResponseForbidden()
    if (request.method == 'POST'):
        form = TeamForm(request.POST, instance=team)
        if form.is_valid():
            form.save()
            return redirect(team.get_absolute_url())
    else:
        form = TeamForm(instance=team)
    return render(request, 'teams/team_form.html', {
        'form': form,
        'team': team,
    })

dataset/ETHPy150Open pinax/pinax-teams/pinax/teams/views.py team_update/VarMisuse@18/22 `request`->`form`