{"action":"created","comment":{"url":"https://api.github.com/repos/openfun/fun-apps/pulls/comments/35517612","id":35517612,"diff_hunk":"@@ -51,5 +54,11 @@ def preview(self, obj):\n     preview.short_description=_('preview')\n     preview.allow_tags = True\n \n+    def queryset(self, request):\n+        queryset = self.model.objects.all()\n+        if settings.FEATURES['USE_MICROSITES']:\n+            queryset = queryset.filter(microsite=microsite.get_value('SITE_NAME'))\n+        return queryset","path":"newsfeed/admin.py","position":21,"original_position":21,"commit_id":"b6db487ba8c5528cc21cdce80cb97ffd0eb75232","original_commit_id":"b6db487ba8c5528cc21cdce80cb97ffd0eb75232","user":{"login":"rmoch","id":89626,"avatar_url":"https://avatars.githubusercontent.com/u/89626?v=3","gravatar_id":"","url":"https://api.github.com/users/rmoch","html_url":"https://github.com/rmoch","followers_url":"https://api.github.com/users/rmoch/followers","following_url":"https://api.github.com/users/rmoch/following{/other_user}","gists_url":"https://api.github.com/users/rmoch/gists{/gist_id}","starred_url":"https://api.github.com/users/rmoch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmoch/subscriptions","organizations_url":"https://api.github.com/users/rmoch/orgs","repos_url":"https://api.github.com/users/rmoch/repos","events_url":"https://api.github.com/users/rmoch/events{/privacy}","received_events_url":"https://api.github.com/users/rmoch/received_events","type":"User","site_admin":false},"body":"mais l'admin l'utilisera pas ?","created_at":"2015-07-27T09:12:51Z","updated_at":"2015-07-27T09:12:51Z","html_url":"https://github.com/openfun/fun-apps/pull/168#discussion_r35517612","pull_request_url":"https://api.github.com/repos/openfun/fun-apps/pulls/168","_links":{"self":{"href":"https://api.github.com/repos/openfun/fun-apps/pulls/comments/35517612"},"html":{"href":"https://github.com/openfun/fun-apps/pull/168#discussion_r35517612"},"pull_request":{"href":"https://api.github.com/repos/openfun/fun-apps/pulls/168"}}},"pull_request":{"url":"https://api.github.com/repos/openfun/fun-apps/pulls/168","id":40879813,"html_url":"https://github.com/openfun/fun-apps/pull/168","diff_url":"https://github.com/openfun/fun-apps/pull/168.diff","patch_url":"https://github.com/openfun/fun-apps/pull/168.patch","issue_url":"https://api.github.com/repos/openfun/fun-apps/issues/168","number":168,"state":"open","locked":false,"title":"model modification and filtering","user":{"login":"rmoch","id":89626,"avatar_url":"https://avatars.githubusercontent.com/u/89626?v=3","gravatar_id":"","url":"https://api.github.com/users/rmoch","html_url":"https://github.com/rmoch","followers_url":"https://api.github.com/users/rmoch/followers","following_url":"https://api.github.com/users/rmoch/following{/other_user}","gists_url":"https://api.github.com/users/rmoch/gists{/gist_id}","starred_url":"https://api.github.com/users/rmoch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmoch/subscriptions","organizations_url":"https://api.github.com/users/rmoch/orgs","repos_url":"https://api.github.com/users/rmoch/repos","events_url":"https://api.github.com/users/rmoch/events{/privacy}","received_events_url":"https://api.github.com/users/rmoch/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-27T08:22:32Z","updated_at":"2015-07-27T09:12:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"880b7ebd112606410691168a308c04e2ff8e9879","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/openfun/fun-apps/pulls/168/commits","review_comments_url":"https://api.github.com/repos/openfun/fun-apps/pulls/168/comments","review_comment_url":"https://api.github.com/repos/openfun/fun-apps/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openfun/fun-apps/issues/168/comments","statuses_url":"https://api.github.com/repos/openfun/fun-apps/statuses/b6db487ba8c5528cc21cdce80cb97ffd0eb75232","head":{"label":"openfun:rmoch/news_for_micrositesB","ref":"rmoch/news_for_micrositesB","sha":"b6db487ba8c5528cc21cdce80cb97ffd0eb75232","user":{"login":"openfun","id":7224891,"avatar_url":"https://avatars.githubusercontent.com/u/7224891?v=3","gravatar_id":"","url":"https://api.github.com/users/openfun","html_url":"https://github.com/openfun","followers_url":"https://api.github.com/users/openfun/followers","following_url":"https://api.github.com/users/openfun/following{/other_user}","gists_url":"https://api.github.com/users/openfun/gists{/gist_id}","starred_url":"https://api.github.com/users/openfun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openfun/subscriptions","organizations_url":"https://api.github.com/users/openfun/orgs","repos_url":"https://api.github.com/users/openfun/repos","events_url":"https://api.github.com/users/openfun/events{/privacy}","received_events_url":"https://api.github.com/users/openfun/received_events","type":"Organization","site_admin":false},"repo":{"id":20556967,"name":"fun-apps","full_name":"openfun/fun-apps","owner":{"login":"openfun","id":7224891,"avatar_url":"https://avatars.githubusercontent.com/u/7224891?v=3","gravatar_id":"","url":"https://api.github.com/users/openfun","html_url":"https://github.com/openfun","followers_url":"https://api.github.com/users/openfun/followers","following_url":"https://api.github.com/users/openfun/following{/other_user}","gists_url":"https://api.github.com/users/openfun/gists{/gist_id}","starred_url":"https://api.github.com/users/openfun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openfun/subscriptions","organizations_url":"https://api.github.com/users/openfun/orgs","repos_url":"https://api.github.com/users/openfun/repos","events_url":"https://api.github.com/users/openfun/events{/privacy}","received_events_url":"https://api.github.com/users/openfun/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openfun/fun-apps","description":"","fork":false,"url":"https://api.github.com/repos/openfun/fun-apps","forks_url":"https://api.github.com/repos/openfun/fun-apps/forks","keys_url":"https://api.github.com/repos/openfun/fun-apps/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openfun/fun-apps/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openfun/fun-apps/teams","hooks_url":"https://api.github.com/repos/openfun/fun-apps/hooks","issue_events_url":"https://api.github.com/repos/openfun/fun-apps/issues/events{/number}","events_url":"https://api.github.com/repos/openfun/fun-apps/events","assignees_url":"https://api.github.com/repos/openfun/fun-apps/assignees{/user}","branches_url":"https://api.github.com/repos/openfun/fun-apps/branches{/branch}","tags_url":"https://api.github.com/repos/openfun/fun-apps/tags","blobs_url":"https://api.github.com/repos/openfun/fun-apps/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openfun/fun-apps/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openfun/fun-apps/git/refs{/sha}","trees_url":"https://api.github.com/repos/openfun/fun-apps/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openfun/fun-apps/statuses/{sha}","languages_url":"https://api.github.com/repos/openfun/fun-apps/languages","stargazers_url":"https://api.github.com/repos/openfun/fun-apps/stargazers","contributors_url":"https://api.github.com/repos/openfun/fun-apps/contributors","subscribers_url":"https://api.github.com/repos/openfun/fun-apps/subscribers","subscription_url":"https://api.github.com/repos/openfun/fun-apps/subscription","commits_url":"https://api.github.com/repos/openfun/fun-apps/commits{/sha}","git_commits_url":"https://api.github.com/repos/openfun/fun-apps/git/commits{/sha}","comments_url":"https://api.github.com/repos/openfun/fun-apps/comments{/number}","issue_comment_url":"https://api.github.com/repos/openfun/fun-apps/issues/comments{/number}","contents_url":"https://api.github.com/repos/openfun/fun-apps/contents/{+path}","compare_url":"https://api.github.com/repos/openfun/fun-apps/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openfun/fun-apps/merges","archive_url":"https://api.github.com/repos/openfun/fun-apps/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openfun/fun-apps/downloads","issues_url":"https://api.github.com/repos/openfun/fun-apps/issues{/number}","pulls_url":"https://api.github.com/repos/openfun/fun-apps/pulls{/number}","milestones_url":"https://api.github.com/repos/openfun/fun-apps/milestones{/number}","notifications_url":"https://api.github.com/repos/openfun/fun-apps/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openfun/fun-apps/labels{/name}","releases_url":"https://api.github.com/repos/openfun/fun-apps/releases{/id}","created_at":"2014-06-06T08:42:58Z","updated_at":"2015-05-08T08:13:46Z","pushed_at":"2015-07-27T08:48:45Z","git_url":"git://github.com/openfun/fun-apps.git","ssh_url":"git@github.com:openfun/fun-apps.git","clone_url":"https://github.com/openfun/fun-apps.git","svn_url":"https://github.com/openfun/fun-apps","homepage":"","size":14429,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":3,"forks":7,"open_issues":3,"watchers":1,"default_branch":"dev"}},"base":{"label":"openfun:dev","ref":"dev","sha":"cfe8ab2f5c71b704853e57cfcd108e395701e0a2","user":{"login":"openfun","id":7224891,"avatar_url":"https://avatars.githubusercontent.com/u/7224891?v=3","gravatar_id":"","url":"https://api.github.com/users/openfun","html_url":"https://github.com/openfun","followers_url":"https://api.github.com/users/openfun/followers","following_url":"https://api.github.com/users/openfun/following{/other_user}","gists_url":"https://api.github.com/users/openfun/gists{/gist_id}","starred_url":"https://api.github.com/users/openfun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openfun/subscriptions","organizations_url":"https://api.github.com/users/openfun/orgs","repos_url":"https://api.github.com/users/openfun/repos","events_url":"https://api.github.com/users/openfun/events{/privacy}","received_events_url":"https://api.github.com/users/openfun/received_events","type":"Organization","site_admin":false},"repo":{"id":20556967,"name":"fun-apps","full_name":"openfun/fun-apps","owner":{"login":"openfun","id":7224891,"avatar_url":"https://avatars.githubusercontent.com/u/7224891?v=3","gravatar_id":"","url":"https://api.github.com/users/openfun","html_url":"https://github.com/openfun","followers_url":"https://api.github.com/users/openfun/followers","following_url":"https://api.github.com/users/openfun/following{/other_user}","gists_url":"https://api.github.com/users/openfun/gists{/gist_id}","starred_url":"https://api.github.com/users/openfun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openfun/subscriptions","organizations_url":"https://api.github.com/users/openfun/orgs","repos_url":"https://api.github.com/users/openfun/repos","events_url":"https://api.github.com/users/openfun/events{/privacy}","received_events_url":"https://api.github.com/users/openfun/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openfun/fun-apps","description":"","fork":false,"url":"https://api.github.com/repos/openfun/fun-apps","forks_url":"https://api.github.com/repos/openfun/fun-apps/forks","keys_url":"https://api.github.com/repos/openfun/fun-apps/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openfun/fun-apps/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openfun/fun-apps/teams","hooks_url":"https://api.github.com/repos/openfun/fun-apps/hooks","issue_events_url":"https://api.github.com/repos/openfun/fun-apps/issues/events{/number}","events_url":"https://api.github.com/repos/openfun/fun-apps/events","assignees_url":"https://api.github.com/repos/openfun/fun-apps/assignees{/user}","branches_url":"https://api.github.com/repos/openfun/fun-apps/branches{/branch}","tags_url":"https://api.github.com/repos/openfun/fun-apps/tags","blobs_url":"https://api.github.com/repos/openfun/fun-apps/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openfun/fun-apps/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openfun/fun-apps/git/refs{/sha}","trees_url":"https://api.github.com/repos/openfun/fun-apps/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openfun/fun-apps/statuses/{sha}","languages_url":"https://api.github.com/repos/openfun/fun-apps/languages","stargazers_url":"https://api.github.com/repos/openfun/fun-apps/stargazers","contributors_url":"https://api.github.com/repos/openfun/fun-apps/contributors","subscribers_url":"https://api.github.com/repos/openfun/fun-apps/subscribers","subscription_url":"https://api.github.com/repos/openfun/fun-apps/subscription","commits_url":"https://api.github.com/repos/openfun/fun-apps/commits{/sha}","git_commits_url":"https://api.github.com/repos/openfun/fun-apps/git/commits{/sha}","comments_url":"https://api.github.com/repos/openfun/fun-apps/comments{/number}","issue_comment_url":"https://api.github.com/repos/openfun/fun-apps/issues/comments{/number}","contents_url":"https://api.github.com/repos/openfun/fun-apps/contents/{+path}","compare_url":"https://api.github.com/repos/openfun/fun-apps/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openfun/fun-apps/merges","archive_url":"https://api.github.com/repos/openfun/fun-apps/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openfun/fun-apps/downloads","issues_url":"https://api.github.com/repos/openfun/fun-apps/issues{/number}","pulls_url":"https://api.github.com/repos/openfun/fun-apps/pulls{/number}","milestones_url":"https://api.github.com/repos/openfun/fun-apps/milestones{/number}","notifications_url":"https://api.github.com/repos/openfun/fun-apps/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openfun/fun-apps/labels{/name}","releases_url":"https://api.github.com/repos/openfun/fun-apps/releases{/id}","created_at":"2014-06-06T08:42:58Z","updated_at":"2015-05-08T08:13:46Z","pushed_at":"2015-07-27T08:48:45Z","git_url":"git://github.com/openfun/fun-apps.git","ssh_url":"git@github.com:openfun/fun-apps.git","clone_url":"https://github.com/openfun/fun-apps.git","svn_url":"https://github.com/openfun/fun-apps","homepage":"","size":14429,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":3,"forks":7,"open_issues":3,"watchers":1,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/openfun/fun-apps/pulls/168"},"html":{"href":"https://github.com/openfun/fun-apps/pull/168"},"issue":{"href":"https://api.github.com/repos/openfun/fun-apps/issues/168"},"comments":{"href":"https://api.github.com/repos/openfun/fun-apps/issues/168/comments"},"review_comments":{"href":"https://api.github.com/repos/openfun/fun-apps/pulls/168/comments"},"review_comment":{"href":"https://api.github.com/repos/openfun/fun-apps/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openfun/fun-apps/pulls/168/commits"},"statuses":{"href":"https://api.github.com/repos/openfun/fun-apps/statuses/b6db487ba8c5528cc21cdce80cb97ffd0eb75232"}}}}