def METHOD_NAME(self, request, format=None):
    # List invitations sent by user.
    username = request.user.username
    invitations = []
    for e in Invitation.objects.get_by_inviter(username):
        invitations.append(e.to_dict())
    return Response(invitations)