GitHub PullRequestReviewCommentEvent at 2014-03-05 15:02:34
Repository: django
Actor: loic
Payload: {"comment":{"url":"https://api.github.com/repos/django/django/pulls/comments/10302182","id":10302182,"diff_hunk":"@@ -42,6 +43,18 @@ def test_generic_relations(self):\n         # You can easily access the content object like a foreign key.\n         t = TaggedItem.objects.get(tag=\"salty\")\n         self.assertEqual(t.content_object, bacon)\n+        qs = TaggedItem.objects.filter(animal__isnull=False).order_by('animal__common_name', 'tag')\n+        self.assertQuerysetEqual(\n+            qs, [\"<TaggedItem: hairy>\", \"<TaggedItem: yellow>\", \"<TaggedItem: fatty>\"]\n+        )\n+        mpk = ManualPK.objects.create(id=1)\n+        mpk.tags.create(tag='mpk')\n+        from django.db.models import Q\n+        qs = TaggedItem.objects.filter(Q(animal__isnull=False) | Q(manualpk__id=1)).order_by('tag')\n+        self.assertQuerysetEqual(\n+            qs, [\"fatty\", \"hairy\", \"mpk\", \"yellow\"], lambda x: x.tag)\n+        mpk.delete()\n+","path":"tests/generic_relations/tests.py","position":23,"original_position":23,"commit_id":"33f84b6d421bc124a3fb9c71b9f42be97aa0c8d2","original_commit_id":"33f84b6d421bc124a3fb9c71b9f42be97aa0c8d2","user":{"login":"loic","id":36160,"avatar_url":"https://gravatar.com/avatar/38f0074996f0e2db5710693707e770d7?d=https%3A%2F%2Fidenticons.github.com%2F8bee14e7f73fc44d9db69ff8bccfe36a.png&r=x","gravatar_id":"38f0074996f0e2db5710693707e770d7","url":"https://api.github.com/users/loic","html_url":"https://github.com/loic","followers_url":"https://api.github.com/users/loic/followers","following_url":"https://api.github.com/users/loic/following{/other_user}","gists_url":"https://api.github.com/users/loic/gists{/gist_id}","starred_url":"https://api.github.com/users/loic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loic/subscriptions","organizations_url":"https://api.github.com/users/loic/orgs","repos_url":"https://api.github.com/users/loic/repos","events_url":"https://api.github.com/users/loic/events{/privacy}","received_events_url":"https://api.github.com/users/loic/received_events","type":"User","site_admin":false},"body":"pep8: extra blank line.","created_at":"2014-03-05T15:02:34Z","updated_at":"2014-03-05T15:02:34Z","html_url":"https://github.com/django/django/pull/2393#discussion_r10302182","pull_request_url":"https://api.github.com/repos/django/django/pulls/2393","_links":{"self":{"href":"https://api.github.com/repos/django/django/pulls/comments/10302182"},"html":{"href":"https://github.com/django/django/pull/2393#discussion_r10302182"},"pull_request":{"href":"https://api.github.com/repos/django/django/pulls/2393"}}}}