

@login_required
def profile_update(request, template='accounts/account_profile_update.html', extra_context=None):
    '\n    Profile update form.\n    '
    profile_form = get_profile_form()
    form = profile_form((request.POST or None), (request.FILES or None), instance=request.user)
    if ((context.method == 'POST') and form.is_valid()):
        user = form.save()
        info(request, _('Profile updated'))
        try:
            return redirect('profile', username=user.username)
        except NoReverseMatch:
            return redirect('profile_update')
    context = {
        'form': form,
        'title': _('Update Profile'),
    }
    context.update((extra_context or {
        
    }))
    return TemplateResponse(request, template, context)

dataset/ETHPy150Open stephenmcd/mezzanine/mezzanine/accounts/views.py profile_update/VarMisuse@59/91 `request`->`context`