{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/pontoon/pulls/comments/55269207","id":55269207,"diff_hunk":"@@ -929,9 +1007,35 @@ def get_translation(self, plural_form=None):\n             }\n \n     @classmethod\n-    def for_project_locale(self, project, locale, paths=None, search=None):\n+    def for_project_locale(self, project, locale, paths=None, search=None, exclude=None,\n+        filter_type=None, filter_search=None):\n         \"\"\"Get project entities with locale translations.\"\"\"\n-        entities = self.objects.filter(\n+        if filter_type and filter_type != 'all':\n+            if filter_type == 'untranslated':\n+                entities = Entity.objects.untranslated(locale)","path":"pontoon/base/models.py","position":103,"original_position":103,"commit_id":"a6b9b6852a813d5d5258a23261cc795bf8000d0c","original_commit_id":"a6b9b6852a813d5d5258a23261cc795bf8000d0c","user":{"login":"mathjazz","id":626716,"avatar_url":"https://avatars.githubusercontent.com/u/626716?v=3","gravatar_id":"","url":"https://api.github.com/users/mathjazz","html_url":"https://github.com/mathjazz","followers_url":"https://api.github.com/users/mathjazz/followers","following_url":"https://api.github.com/users/mathjazz/following{/other_user}","gists_url":"https://api.github.com/users/mathjazz/gists{/gist_id}","starred_url":"https://api.github.com/users/mathjazz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathjazz/subscriptions","organizations_url":"https://api.github.com/users/mathjazz/orgs","repos_url":"https://api.github.com/users/mathjazz/repos","events_url":"https://api.github.com/users/mathjazz/events{/privacy}","received_events_url":"https://api.github.com/users/mathjazz/received_events","type":"User","site_admin":false},"body":"You could use `self` instead of `Entity`throughout this function.","created_at":"2016-03-07T20:47:28Z","updated_at":"2016-03-07T20:47:28Z","html_url":"https://github.com/mozilla/pontoon/pull/335#discussion_r55269207","pull_request_url":"https://api.github.com/repos/mozilla/pontoon/pulls/335","_links":{"self":{"href":"https://api.github.com/repos/mozilla/pontoon/pulls/comments/55269207"},"html":{"href":"https://github.com/mozilla/pontoon/pull/335#discussion_r55269207"},"pull_request":{"href":"https://api.github.com/repos/mozilla/pontoon/pulls/335"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla/pontoon/pulls/335","id":57816130,"html_url":"https://github.com/mozilla/pontoon/pull/335","diff_url":"https://github.com/mozilla/pontoon/pull/335.diff","patch_url":"https://github.com/mozilla/pontoon/pull/335.patch","issue_url":"https://api.github.com/repos/mozilla/pontoon/issues/335","number":335,"state":"open","locked":false,"title":"Bug 1216546 progressive load","user":{"login":"jotes","id":8784972,"avatar_url":"https://avatars.githubusercontent.com/u/8784972?v=3","gravatar_id":"","url":"https://api.github.com/users/jotes","html_url":"https://github.com/jotes","followers_url":"https://api.github.com/users/jotes/followers","following_url":"https://api.github.com/users/jotes/following{/other_user}","gists_url":"https://api.github.com/users/jotes/gists{/gist_id}","starred_url":"https://api.github.com/users/jotes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jotes/subscriptions","organizations_url":"https://api.github.com/users/jotes/orgs","repos_url":"https://api.github.com/users/jotes/repos","events_url":"https://api.github.com/users/jotes/events{/privacy}","received_events_url":"https://api.github.com/users/jotes/received_events","type":"User","site_admin":false},"body":"Hi,\r\nUnfortunately, i couldn't finish whole feature during one weekend. However, i decided to push code for your initial review.\r\nHowever, review don't block me from working on this issue.","created_at":"2016-02-01T09:44:53Z","updated_at":"2016-03-07T20:47:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4cb4c992d4c7647149a0ba6c9b179fbbd6a41ec6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/pontoon/pulls/335/commits","review_comments_url":"https://api.github.com/repos/mozilla/pontoon/pulls/335/comments","review_comment_url":"https://api.github.com/repos/mozilla/pontoon/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla/pontoon/issues/335/comments","statuses_url":"https://api.github.com/repos/mozilla/pontoon/statuses/a6b9b6852a813d5d5258a23261cc795bf8000d0c","head":{"label":"jotes:bug_1216546_progressive_load","ref":"bug_1216546_progressive_load","sha":"a6b9b6852a813d5d5258a23261cc795bf8000d0c","user":{"login":"jotes","id":8784972,"avatar_url":"https://avatars.githubusercontent.com/u/8784972?v=3","gravatar_id":"","url":"https://api.github.com/users/jotes","html_url":"https://github.com/jotes","followers_url":"https://api.github.com/users/jotes/followers","following_url":"https://api.github.com/users/jotes/following{/other_user}","gists_url":"https://api.github.com/users/jotes/gists{/gist_id}","starred_url":"https://api.github.com/users/jotes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jotes/subscriptions","organizations_url":"https://api.github.com/users/jotes/orgs","repos_url":"https://api.github.com/users/jotes/repos","events_url":"https://api.github.com/users/jotes/events{/privacy}","received_events_url":"https://api.github.com/users/jotes/received_events","type":"User","site_admin":false},"repo":{"id":40921914,"name":"pontoon","full_name":"jotes/pontoon","owner":{"login":"jotes","id":8784972,"avatar_url":"https://avatars.githubusercontent.com/u/8784972?v=3","gravatar_id":"","url":"https://api.github.com/users/jotes","html_url":"https://github.com/jotes","followers_url":"https://api.github.com/users/jotes/followers","following_url":"https://api.github.com/users/jotes/following{/other_user}","gists_url":"https://api.github.com/users/jotes/gists{/gist_id}","starred_url":"https://api.github.com/users/jotes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jotes/subscriptions","organizations_url":"https://api.github.com/users/jotes/orgs","repos_url":"https://api.github.com/users/jotes/repos","events_url":"https://api.github.com/users/jotes/events{/privacy}","received_events_url":"https://api.github.com/users/jotes/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jotes/pontoon","description":"In-place localization tool","fork":true,"url":"https://api.github.com/repos/jotes/pontoon","forks_url":"https://api.github.com/repos/jotes/pontoon/forks","keys_url":"https://api.github.com/repos/jotes/pontoon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jotes/pontoon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jotes/pontoon/teams","hooks_url":"https://api.github.com/repos/jotes/pontoon/hooks","issue_events_url":"https://api.github.com/repos/jotes/pontoon/issues/events{/number}","events_url":"https://api.github.com/repos/jotes/pontoon/events","assignees_url":"https://api.github.com/repos/jotes/pontoon/assignees{/user}","branches_url":"https://api.github.com/repos/jotes/pontoon/branches{/branch}","tags_url":"https://api.github.com/repos/jotes/pontoon/tags","blobs_url":"https://api.github.com/repos/jotes/pontoon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jotes/pontoon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jotes/pontoon/git/refs{/sha}","trees_url":"https://api.github.com/repos/jotes/pontoon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jotes/pontoon/statuses/{sha}","languages_url":"https://api.github.com/repos/jotes/pontoon/languages","stargazers_url":"https://api.github.com/repos/jotes/pontoon/stargazers","contributors_url":"https://api.github.com/repos/jotes/pontoon/contributors","subscribers_url":"https://api.github.com/repos/jotes/pontoon/subscribers","subscription_url":"https://api.github.com/repos/jotes/pontoon/subscription","commits_url":"https://api.github.com/repos/jotes/pontoon/commits{/sha}","git_commits_url":"https://api.github.com/repos/jotes/pontoon/git/commits{/sha}","comments_url":"https://api.github.com/repos/jotes/pontoon/comments{/number}","issue_comment_url":"https://api.github.com/repos/jotes/pontoon/issues/comments{/number}","contents_url":"https://api.github.com/repos/jotes/pontoon/contents/{+path}","compare_url":"https://api.github.com/repos/jotes/pontoon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jotes/pontoon/merges","archive_url":"https://api.github.com/repos/jotes/pontoon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jotes/pontoon/downloads","issues_url":"https://api.github.com/repos/jotes/pontoon/issues{/number}","pulls_url":"https://api.github.com/repos/jotes/pontoon/pulls{/number}","milestones_url":"https://api.github.com/repos/jotes/pontoon/milestones{/number}","notifications_url":"https://api.github.com/repos/jotes/pontoon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jotes/pontoon/labels{/name}","releases_url":"https://api.github.com/repos/jotes/pontoon/releases{/id}","deployments_url":"https://api.github.com/repos/jotes/pontoon/deployments","created_at":"2015-08-17T19:18:45Z","updated_at":"2016-02-20T23:53:08Z","pushed_at":"2016-03-07T01:16:10Z","git_url":"git://github.com/jotes/pontoon.git","ssh_url":"git@github.com:jotes/pontoon.git","clone_url":"https://github.com/jotes/pontoon.git","svn_url":"https://github.com/jotes/pontoon","homepage":"https://pontoon.mozilla.org/","size":19124,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mozilla:master","ref":"master","sha":"8537ed84b7457b485f73195c261c8e6a03094a9f","user":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":1385890,"name":"pontoon","full_name":"mozilla/pontoon","owner":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/pontoon","description":"In-place localization tool","fork":false,"url":"https://api.github.com/repos/mozilla/pontoon","forks_url":"https://api.github.com/repos/mozilla/pontoon/forks","keys_url":"https://api.github.com/repos/mozilla/pontoon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/pontoon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/pontoon/teams","hooks_url":"https://api.github.com/repos/mozilla/pontoon/hooks","issue_events_url":"https://api.github.com/repos/mozilla/pontoon/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/pontoon/events","assignees_url":"https://api.github.com/repos/mozilla/pontoon/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/pontoon/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/pontoon/tags","blobs_url":"https://api.github.com/repos/mozilla/pontoon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/pontoon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/pontoon/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/pontoon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/pontoon/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/pontoon/languages","stargazers_url":"https://api.github.com/repos/mozilla/pontoon/stargazers","contributors_url":"https://api.github.com/repos/mozilla/pontoon/contributors","subscribers_url":"https://api.github.com/repos/mozilla/pontoon/subscribers","subscription_url":"https://api.github.com/repos/mozilla/pontoon/subscription","commits_url":"https://api.github.com/repos/mozilla/pontoon/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/pontoon/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/pontoon/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/pontoon/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/pontoon/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/pontoon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/pontoon/merges","archive_url":"https://api.github.com/repos/mozilla/pontoon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/pontoon/downloads","issues_url":"https://api.github.com/repos/mozilla/pontoon/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/pontoon/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/pontoon/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/pontoon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/pontoon/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/pontoon/releases{/id}","deployments_url":"https://api.github.com/repos/mozilla/pontoon/deployments","created_at":"2011-02-19T11:25:51Z","updated_at":"2016-02-21T10:06:03Z","pushed_at":"2016-03-07T01:16:10Z","git_url":"git://github.com/mozilla/pontoon.git","ssh_url":"git@github.com:mozilla/pontoon.git","clone_url":"https://github.com/mozilla/pontoon.git","svn_url":"https://github.com/mozilla/pontoon","homepage":"https://pontoon.mozilla.org/","size":19369,"stargazers_count":99,"watchers_count":99,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":36,"mirror_url":null,"open_issues_count":6,"forks":36,"open_issues":6,"watchers":99,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/pontoon/pulls/335"},"html":{"href":"https://github.com/mozilla/pontoon/pull/335"},"issue":{"href":"https://api.github.com/repos/mozilla/pontoon/issues/335"},"comments":{"href":"https://api.github.com/repos/mozilla/pontoon/issues/335/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/pontoon/pulls/335/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/pontoon/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla/pontoon/pulls/335/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/pontoon/statuses/a6b9b6852a813d5d5258a23261cc795bf8000d0c"}}}}