def METHOD_NAME(request, user_name):
    """Minimal settings of users for staff."""
    # Extra information about the current user
    profile = get_object_or_404(Profile, user__username=user_name)
    if request.method == "POST":
        form = MiniProfileForm(request.POST)
        data = {"form": form, "profile": profile}
        if form.is_valid():
            profile.biography = form.data["biography"]
            profile.site = form.data["site"]
            profile.avatar_url = form.data["avatar_url"]
            profile.sign = form.data["sign"]
            # Save profile and redirect user to the settings page
            # with a message indicating the operation state.
            try:
                profile.save()
            except:
                messages.error(request, _("Une erreur est survenue."))
                return redirect(reverse("member-settings-mini-profile"))
            messages.success(request, _("Le profil a correctement été mis à jour."))
            return redirect(reverse("member-detail", args=[profile.user.username]))
        else:
            return render(request, "member/settings/profile.html", data)
    else:
        form = MiniProfileForm(
            initial={
                "biography": profile.biography,
                "site": profile.site,
                "avatar_url": profile.avatar_url,
                "sign": profile.sign,
            }
        )
        data = {"form": form, "profile": profile}
        messages.warning(
            request,
            _(
                "Le profil que vous éditez n'est pas le vôtre. "
                "Soyez encore plus prudent lors de l'édition de celui-ci !"
            ),
        )
        return render(request, "member/settings/profile.html", data)