def METHOD_NAME(self, **kwargs):
    context = super().METHOD_NAME(**kwargs)
    invitation = self.get_object()
    from_user = invitation.from_user
    context["requestor_name"] = from_user.get_full_name() or from_user.username
    context["requestor_url"] = reverse(
        "profiles_profile_detail", args=[from_user.username]
    )
    context["target_name"] = invitation.object_name
    context["target_type"] = invitation.object._meta.verbose_name
    return context