{"action":"created","issue":{"url":"https://api.github.com/repos/Sparrho/bungiesearch/issues/89","labels_url":"https://api.github.com/repos/Sparrho/bungiesearch/issues/89/labels{/name}","comments_url":"https://api.github.com/repos/Sparrho/bungiesearch/issues/89/comments","events_url":"https://api.github.com/repos/Sparrho/bungiesearch/issues/89/events","html_url":"https://github.com/Sparrho/bungiesearch/issues/89","id":95084675,"number":89,"title":"Bug in signal processing - self.model is None","user":{"login":"afrancis13","id":7095243,"avatar_url":"https://avatars.githubusercontent.com/u/7095243?v=3","gravatar_id":"","url":"https://api.github.com/users/afrancis13","html_url":"https://github.com/afrancis13","followers_url":"https://api.github.com/users/afrancis13/followers","following_url":"https://api.github.com/users/afrancis13/following{/other_user}","gists_url":"https://api.github.com/users/afrancis13/gists{/gist_id}","starred_url":"https://api.github.com/users/afrancis13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afrancis13/subscriptions","organizations_url":"https://api.github.com/users/afrancis13/orgs","repos_url":"https://api.github.com/users/afrancis13/repos","events_url":"https://api.github.com/users/afrancis13/events{/privacy}","received_events_url":"https://api.github.com/users/afrancis13/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-15T01:55:22Z","updated_at":"2015-07-15T21:36:46Z","closed_at":"2015-07-15T21:36:46Z","body":"```self.model``` is ```None``` here. It seems like this should not be the case, and may have slipped through the cracks. I'm going to try to make amends to this - Django seems to set ```self.model``` to ```None``` by default.\r\n\r\n```\r\n/Users/betterworks/bungiesearch/tests/core/models.py(5)<module>()\r\n\r\n      3 \r\n\r\n      4 \r\n\r\n----> 5 class Article(models.Model):\r\n\r\n      6     title = models.TextField(db_index=True)\r\n\r\n      7     authors = models.TextField(blank=True)\r\n\r\n/Users/betterworks/bungiesearch/tests/core/models.py(22)Article()\r\n\r\n     20     popularity_index = models.IntegerField(default=0)\r\n\r\n     21 \r\n\r\n---> 22     objects = BungiesearchManager()\r\n\r\n     23 \r\n\r\n     24     class Meta:\r\n\r\n> /Users/betterworks/bungiesearch/bungiesearch/managers.py(35)__init__()\r\n\r\n     33         import ipdb; ipdb.set_trace()\r\n\r\n     34         settings = Bungiesearch.BUNGIE\r\n\r\n---> 35         if 'SIGNALS' in settings:\r\n\r\n     36             self.signal_processor = get_signal_processor()\r\n\r\n     37             self.signal_processor.setup(self.model)\r\n\r\nipdb> self.model\r\n\r\nipdb> type(self.model)\r\n\r\n<type 'NoneType'>\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/Sparrho/bungiesearch/issues/comments/121757578","html_url":"https://github.com/Sparrho/bungiesearch/issues/89#issuecomment-121757578","issue_url":"https://api.github.com/repos/Sparrho/bungiesearch/issues/89","id":121757578,"user":{"login":"afrancis13","id":7095243,"avatar_url":"https://avatars.githubusercontent.com/u/7095243?v=3","gravatar_id":"","url":"https://api.github.com/users/afrancis13","html_url":"https://github.com/afrancis13","followers_url":"https://api.github.com/users/afrancis13/followers","following_url":"https://api.github.com/users/afrancis13/following{/other_user}","gists_url":"https://api.github.com/users/afrancis13/gists{/gist_id}","starred_url":"https://api.github.com/users/afrancis13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afrancis13/subscriptions","organizations_url":"https://api.github.com/users/afrancis13/orgs","repos_url":"https://api.github.com/users/afrancis13/repos","events_url":"https://api.github.com/users/afrancis13/events{/privacy}","received_events_url":"https://api.github.com/users/afrancis13/received_events","type":"User","site_admin":false},"created_at":"2015-07-15T21:36:46Z","updated_at":"2015-07-15T21:36:46Z","body":"This is my mistake. I thought there was an issue because the return values were double what I was expecting, but I realized that the results were being returned from two separate indices. I was working with something else and playing around with the signals and seeing that self.model was None got me confused. Sorry!"}}