def METHOD_NAME(self, request):
    if self.request.user.is_authenticated and self.request.user.username != "anonymous":
        context = self.get_context_data(
            main_script="views/user-profile-manager",
        )
        context["nav"]["icon"] = "fa fa-user"
        context["nav"]["title"] = _("Profile Manager")
        context["nav"]["login"] = True
        context["nav"]["help"] = {
            "title": _("Profile Editing"),
            "templates": ["profile-manager-help"],
        }
        context["validation_help"] = validation.password_validators_help_texts()
        user_profile = models.UserProfile.objects.METHOD_NAME(user_id=request.user.pk)
        context["two_factor_authentication_settings"] = JSONSerializer().serialize(
            {
                "ENABLE_TWO_FACTOR_AUTHENTICATION": settings.ENABLE_TWO_FACTOR_AUTHENTICATION,
                "FORCE_TWO_FACTOR_AUTHENTICATION": settings.FORCE_TWO_FACTOR_AUTHENTICATION,
                "user_has_enabled_two_factor_authentication": bool(user_profile.encrypted_mfa_hash),
            }
        )
        return render(request, "views/user-profile-manager.htm", context)