def last_posted_user_name(ticket):
    """
        Get the username of the last post created
        :param ticket: The requested ticket to get last post for
        :return: username of last post
    """

    last_post = ticket.posts.all().order_by('created_at').last()
    return last_post.user.username