{"action":"created","issue":{"url":"https://api.github.com/repos/justquick/django-activity-stream/issues/245","repository_url":"https://api.github.com/repos/justquick/django-activity-stream","labels_url":"https://api.github.com/repos/justquick/django-activity-stream/issues/245/labels{/name}","comments_url":"https://api.github.com/repos/justquick/django-activity-stream/issues/245/comments","events_url":"https://api.github.com/repos/justquick/django-activity-stream/issues/245/events","html_url":"https://github.com/justquick/django-activity-stream/issues/245","id":86914839,"node_id":"MDU6SXNzdWU4NjkxNDgzOQ==","number":245,"title":"Missing target while using actor_stream","user":{"login":"fynjah","id":3481154,"node_id":"MDQ6VXNlcjM0ODExNTQ=","avatar_url":"https://avatars1.githubusercontent.com/u/3481154?v=4","gravatar_id":"","url":"https://api.github.com/users/fynjah","html_url":"https://github.com/fynjah","followers_url":"https://api.github.com/users/fynjah/followers","following_url":"https://api.github.com/users/fynjah/following{/other_user}","gists_url":"https://api.github.com/users/fynjah/gists{/gist_id}","starred_url":"https://api.github.com/users/fynjah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fynjah/subscriptions","organizations_url":"https://api.github.com/users/fynjah/orgs","repos_url":"https://api.github.com/users/fynjah/repos","events_url":"https://api.github.com/users/fynjah/events{/privacy}","received_events_url":"https://api.github.com/users/fynjah/received_events","type":"User","site_admin":false},"labels":[{"id":370765876,"node_id":"MDU6TGFiZWwzNzA3NjU4NzY=","url":"https://api.github.com/repos/justquick/django-activity-stream/labels/weirdness","name":"weirdness","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2015-06-10T10:16:10Z","updated_at":"2018-07-26T03:02:46Z","closed_at":null,"author_association":"NONE","body":"hi.\nI'm expecting troubles with `actor_stream(request.user)`. \n\nfor example:\n\n```\nfrom actstream.models import actor_stream, Action\nprint actor_stream(request.user)[0].target # returns None\nprint Action.objects.all()[0].target # returns Target object\n```\n\nBUT:\n\n```\nfrom actstream.models import actor_stream, Action\nprint request.user.actor_actions.all()[0].target  # returns Target object\n```\n\nUser model - this is a custom user model, configured as described in djangoproject tutorial. \nTarget model looks like this:\n\n```\nclass Task(models.Model):\n    id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)\n    user = models.ForeignKey('core_auth.User', blank=True, null=True)\n    ... < more fields >\n```\n\nLet me show you:\n\n```\n>>> from actstream.models import actor_stream, Action\n>>> from core_auth.models import User\n>>> u = User.objects.get(username='fynjah')\n>>> actor_stream(u)[0].target # None\n>>> x = actor_stream(u)[0]\n>>> x\n<Action: fynjah changed status DONE 58 minutes ago>\n# BUT:\n>>> x.target_content_type\n<ContentType: Task>\n>>> x.target\n>>> x.target_object_id\nu'f08ae5ab-8c07-4929-9021-62c867f0d081'\n# AND:\n>>> u.actor_actions.all()[0].target\n<Task: wdstrm compositing>\n```\n\nWhat am i doing wrong :\\\n"},"comment":{"url":"https://api.github.com/repos/justquick/django-activity-stream/issues/comments/407961265","html_url":"https://github.com/justquick/django-activity-stream/issues/245#issuecomment-407961265","issue_url":"https://api.github.com/repos/justquick/django-activity-stream/issues/245","id":407961265,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNzk2MTI2NQ==","user":{"login":"johnyoonh","id":18730221,"node_id":"MDQ6VXNlcjE4NzMwMjIx","avatar_url":"https://avatars0.githubusercontent.com/u/18730221?v=4","gravatar_id":"","url":"https://api.github.com/users/johnyoonh","html_url":"https://github.com/johnyoonh","followers_url":"https://api.github.com/users/johnyoonh/followers","following_url":"https://api.github.com/users/johnyoonh/following{/other_user}","gists_url":"https://api.github.com/users/johnyoonh/gists{/gist_id}","starred_url":"https://api.github.com/users/johnyoonh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnyoonh/subscriptions","organizations_url":"https://api.github.com/users/johnyoonh/orgs","repos_url":"https://api.github.com/users/johnyoonh/repos","events_url":"https://api.github.com/users/johnyoonh/events{/privacy}","received_events_url":"https://api.github.com/users/johnyoonh/received_events","type":"User","site_admin":false},"created_at":"2018-07-26T03:02:46Z","updated_at":"2018-07-26T03:02:46Z","author_association":"NONE","body":"Yup this happens to me too"}}
{"actor":{"display_login":"johnyoonh"}}