{"action":"opened","issue":{"url":"https://api.github.com/repos/robinedwards/neomodel/issues/216","repository_url":"https://api.github.com/repos/robinedwards/neomodel","labels_url":"https://api.github.com/repos/robinedwards/neomodel/issues/216/labels{/name}","comments_url":"https://api.github.com/repos/robinedwards/neomodel/issues/216/comments","events_url":"https://api.github.com/repos/robinedwards/neomodel/issues/216/events","html_url":"https://github.com/robinedwards/neomodel/issues/216","id":177523305,"number":216,"title":"Issue with connecting models of same class","user":{"login":"ahrennsiva","id":13087020,"avatar_url":"https://avatars.githubusercontent.com/u/13087020?v=3","gravatar_id":"","url":"https://api.github.com/users/ahrennsiva","html_url":"https://github.com/ahrennsiva","followers_url":"https://api.github.com/users/ahrennsiva/followers","following_url":"https://api.github.com/users/ahrennsiva/following{/other_user}","gists_url":"https://api.github.com/users/ahrennsiva/gists{/gist_id}","starred_url":"https://api.github.com/users/ahrennsiva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahrennsiva/subscriptions","organizations_url":"https://api.github.com/users/ahrennsiva/orgs","repos_url":"https://api.github.com/users/ahrennsiva/repos","events_url":"https://api.github.com/users/ahrennsiva/events{/privacy}","received_events_url":"https://api.github.com/users/ahrennsiva/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-16T21:21:39Z","updated_at":"2016-09-16T21:21:39Z","closed_at":null,"body":"Essentially trying to connect two nodes of the same type, as the first step in recommending users to follow through users currently followed. I'm running into this problem: isinstance() arg 2 must be a class, type, or tuple of classes and types.\r\n\r\nAny advice for how I can build this functionality in neomodel or why i'm hitting this error would be great.\r\n\r\nThis is what the class looks like so far:\r\nclass NeoConnectProfile(StructuredNode):\r\n    user_id = IntegerProperty(required=False, unique_index=True)\r\n    company= StringProperty(required=False, index=True)\r\n    following = RelationshipTo('NeoConnectProfile', 'FOLLOW')\r\n    followers = RelationshipFrom('NeoConnectProfile', 'FOLLOW')\r\n\r\n    def follow_person(self, user_id):\r\n        followed_user = self.index.get(user_id=user_id)        \r\n        self.follow.connect(followed_user)        \r\n\r\n    def unfollow_person(self, user_id):\r\n        followed_user = self.index.get(user_id=user_id)\r\n        self.follow.disconnect(followed_user)\r\n"}}
{"actor":{"display_login":"ahrennsiva"}}