{"action":"closed","number":301,"pull_request":{"url":"https://api.github.com/repos/alex/django-filter/pulls/301","id":45486326,"html_url":"https://github.com/alex/django-filter/pull/301","diff_url":"https://github.com/alex/django-filter/pull/301.diff","patch_url":"https://github.com/alex/django-filter/pull/301.patch","issue_url":"https://api.github.com/repos/alex/django-filter/issues/301","number":301,"state":"closed","locked":false,"title":"Add LOOKUPS.ALL shortcut, resolving #298","user":{"login":"rpkilby","id":2370209,"avatar_url":"https://avatars.githubusercontent.com/u/2370209?v=3","gravatar_id":"","url":"https://api.github.com/users/rpkilby","html_url":"https://github.com/rpkilby","followers_url":"https://api.github.com/users/rpkilby/followers","following_url":"https://api.github.com/users/rpkilby/following{/other_user}","gists_url":"https://api.github.com/users/rpkilby/gists{/gist_id}","starred_url":"https://api.github.com/users/rpkilby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpkilby/subscriptions","organizations_url":"https://api.github.com/users/rpkilby/orgs","repos_url":"https://api.github.com/users/rpkilby/repos","events_url":"https://api.github.com/users/rpkilby/events{/privacy}","received_events_url":"https://api.github.com/users/rpkilby/received_events","type":"User","site_admin":false},"body":"Resolves #298.\r\n\r\nOne enhancement I can think of is to generate lookups only where applicable. For example, only generate the isnull filter when a field is nullable and only including the datetime relevant filters (day, hour, week_day, etc..) for datetime fields.","created_at":"2015-09-19T23:21:48Z","updated_at":"2015-09-20T19:17:22Z","closed_at":"2015-09-20T19:17:22Z","merged_at":null,"merge_commit_sha":"c9b56079110845e4ee93fb92796b55783ea3e2e2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/alex/django-filter/pulls/301/commits","review_comments_url":"https://api.github.com/repos/alex/django-filter/pulls/301/comments","review_comment_url":"https://api.github.com/repos/alex/django-filter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alex/django-filter/issues/301/comments","statuses_url":"https://api.github.com/repos/alex/django-filter/statuses/82bb9315a14e7f096dea8746695f45cf5c9663dc","head":{"label":"rpkilby:all-lookups","ref":"all-lookups","sha":"82bb9315a14e7f096dea8746695f45cf5c9663dc","user":{"login":"rpkilby","id":2370209,"avatar_url":"https://avatars.githubusercontent.com/u/2370209?v=3","gravatar_id":"","url":"https://api.github.com/users/rpkilby","html_url":"https://github.com/rpkilby","followers_url":"https://api.github.com/users/rpkilby/followers","following_url":"https://api.github.com/users/rpkilby/following{/other_user}","gists_url":"https://api.github.com/users/rpkilby/gists{/gist_id}","starred_url":"https://api.github.com/users/rpkilby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpkilby/subscriptions","organizations_url":"https://api.github.com/users/rpkilby/orgs","repos_url":"https://api.github.com/users/rpkilby/repos","events_url":"https://api.github.com/users/rpkilby/events{/privacy}","received_events_url":"https://api.github.com/users/rpkilby/received_events","type":"User","site_admin":false},"repo":{"id":42677487,"name":"django-filter","full_name":"rpkilby/django-filter","owner":{"login":"rpkilby","id":2370209,"avatar_url":"https://avatars.githubusercontent.com/u/2370209?v=3","gravatar_id":"","url":"https://api.github.com/users/rpkilby","html_url":"https://github.com/rpkilby","followers_url":"https://api.github.com/users/rpkilby/followers","following_url":"https://api.github.com/users/rpkilby/following{/other_user}","gists_url":"https://api.github.com/users/rpkilby/gists{/gist_id}","starred_url":"https://api.github.com/users/rpkilby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpkilby/subscriptions","organizations_url":"https://api.github.com/users/rpkilby/orgs","repos_url":"https://api.github.com/users/rpkilby/repos","events_url":"https://api.github.com/users/rpkilby/events{/privacy}","received_events_url":"https://api.github.com/users/rpkilby/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rpkilby/django-filter","description":"A generic system for filtering Django QuerySets based on user selections","fork":true,"url":"https://api.github.com/repos/rpkilby/django-filter","forks_url":"https://api.github.com/repos/rpkilby/django-filter/forks","keys_url":"https://api.github.com/repos/rpkilby/django-filter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rpkilby/django-filter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rpkilby/django-filter/teams","hooks_url":"https://api.github.com/repos/rpkilby/django-filter/hooks","issue_events_url":"https://api.github.com/repos/rpkilby/django-filter/issues/events{/number}","events_url":"https://api.github.com/repos/rpkilby/django-filter/events","assignees_url":"https://api.github.com/repos/rpkilby/django-filter/assignees{/user}","branches_url":"https://api.github.com/repos/rpkilby/django-filter/branches{/branch}","tags_url":"https://api.github.com/repos/rpkilby/django-filter/tags","blobs_url":"https://api.github.com/repos/rpkilby/django-filter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rpkilby/django-filter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rpkilby/django-filter/git/refs{/sha}","trees_url":"https://api.github.com/repos/rpkilby/django-filter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rpkilby/django-filter/statuses/{sha}","languages_url":"https://api.github.com/repos/rpkilby/django-filter/languages","stargazers_url":"https://api.github.com/repos/rpkilby/django-filter/stargazers","contributors_url":"https://api.github.com/repos/rpkilby/django-filter/contributors","subscribers_url":"https://api.github.com/repos/rpkilby/django-filter/subscribers","subscription_url":"https://api.github.com/repos/rpkilby/django-filter/subscription","commits_url":"https://api.github.com/repos/rpkilby/django-filter/commits{/sha}","git_commits_url":"https://api.github.com/repos/rpkilby/django-filter/git/commits{/sha}","comments_url":"https://api.github.com/repos/rpkilby/django-filter/comments{/number}","issue_comment_url":"https://api.github.com/repos/rpkilby/django-filter/issues/comments{/number}","contents_url":"https://api.github.com/repos/rpkilby/django-filter/contents/{+path}","compare_url":"https://api.github.com/repos/rpkilby/django-filter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rpkilby/django-filter/merges","archive_url":"https://api.github.com/repos/rpkilby/django-filter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rpkilby/django-filter/downloads","issues_url":"https://api.github.com/repos/rpkilby/django-filter/issues{/number}","pulls_url":"https://api.github.com/repos/rpkilby/django-filter/pulls{/number}","milestones_url":"https://api.github.com/repos/rpkilby/django-filter/milestones{/number}","notifications_url":"https://api.github.com/repos/rpkilby/django-filter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rpkilby/django-filter/labels{/name}","releases_url":"https://api.github.com/repos/rpkilby/django-filter/releases{/id}","created_at":"2015-09-17T19:36:57Z","updated_at":"2015-09-17T19:36:57Z","pushed_at":"2015-09-20T01:07:06Z","git_url":"git://github.com/rpkilby/django-filter.git","ssh_url":"git@github.com:rpkilby/django-filter.git","clone_url":"https://github.com/rpkilby/django-filter.git","svn_url":"https://github.com/rpkilby/django-filter","homepage":"https://django-filter.readthedocs.org","size":1828,"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":"develop"}},"base":{"label":"alex:develop","ref":"develop","sha":"f41e0d677717c26f07e6639fc6a549b316a8f7f4","user":{"login":"alex","id":772,"avatar_url":"https://avatars.githubusercontent.com/u/772?v=3","gravatar_id":"","url":"https://api.github.com/users/alex","html_url":"https://github.com/alex","followers_url":"https://api.github.com/users/alex/followers","following_url":"https://api.github.com/users/alex/following{/other_user}","gists_url":"https://api.github.com/users/alex/gists{/gist_id}","starred_url":"https://api.github.com/users/alex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alex/subscriptions","organizations_url":"https://api.github.com/users/alex/orgs","repos_url":"https://api.github.com/users/alex/repos","events_url":"https://api.github.com/users/alex/events{/privacy}","received_events_url":"https://api.github.com/users/alex/received_events","type":"User","site_admin":false},"repo":{"id":117741,"name":"django-filter","full_name":"alex/django-filter","owner":{"login":"alex","id":772,"avatar_url":"https://avatars.githubusercontent.com/u/772?v=3","gravatar_id":"","url":"https://api.github.com/users/alex","html_url":"https://github.com/alex","followers_url":"https://api.github.com/users/alex/followers","following_url":"https://api.github.com/users/alex/following{/other_user}","gists_url":"https://api.github.com/users/alex/gists{/gist_id}","starred_url":"https://api.github.com/users/alex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alex/subscriptions","organizations_url":"https://api.github.com/users/alex/orgs","repos_url":"https://api.github.com/users/alex/repos","events_url":"https://api.github.com/users/alex/events{/privacy}","received_events_url":"https://api.github.com/users/alex/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alex/django-filter","description":"A generic system for filtering Django QuerySets based on user selections","fork":false,"url":"https://api.github.com/repos/alex/django-filter","forks_url":"https://api.github.com/repos/alex/django-filter/forks","keys_url":"https://api.github.com/repos/alex/django-filter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alex/django-filter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alex/django-filter/teams","hooks_url":"https://api.github.com/repos/alex/django-filter/hooks","issue_events_url":"https://api.github.com/repos/alex/django-filter/issues/events{/number}","events_url":"https://api.github.com/repos/alex/django-filter/events","assignees_url":"https://api.github.com/repos/alex/django-filter/assignees{/user}","branches_url":"https://api.github.com/repos/alex/django-filter/branches{/branch}","tags_url":"https://api.github.com/repos/alex/django-filter/tags","blobs_url":"https://api.github.com/repos/alex/django-filter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alex/django-filter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alex/django-filter/git/refs{/sha}","trees_url":"https://api.github.com/repos/alex/django-filter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alex/django-filter/statuses/{sha}","languages_url":"https://api.github.com/repos/alex/django-filter/languages","stargazers_url":"https://api.github.com/repos/alex/django-filter/stargazers","contributors_url":"https://api.github.com/repos/alex/django-filter/contributors","subscribers_url":"https://api.github.com/repos/alex/django-filter/subscribers","subscription_url":"https://api.github.com/repos/alex/django-filter/subscription","commits_url":"https://api.github.com/repos/alex/django-filter/commits{/sha}","git_commits_url":"https://api.github.com/repos/alex/django-filter/git/commits{/sha}","comments_url":"https://api.github.com/repos/alex/django-filter/comments{/number}","issue_comment_url":"https://api.github.com/repos/alex/django-filter/issues/comments{/number}","contents_url":"https://api.github.com/repos/alex/django-filter/contents/{+path}","compare_url":"https://api.github.com/repos/alex/django-filter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alex/django-filter/merges","archive_url":"https://api.github.com/repos/alex/django-filter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alex/django-filter/downloads","issues_url":"https://api.github.com/repos/alex/django-filter/issues{/number}","pulls_url":"https://api.github.com/repos/alex/django-filter/pulls{/number}","milestones_url":"https://api.github.com/repos/alex/django-filter/milestones{/number}","notifications_url":"https://api.github.com/repos/alex/django-filter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alex/django-filter/labels{/name}","releases_url":"https://api.github.com/repos/alex/django-filter/releases{/id}","created_at":"2009-01-30T00:35:57Z","updated_at":"2015-09-20T13:49:25Z","pushed_at":"2015-09-20T01:05:49Z","git_url":"git://github.com/alex/django-filter.git","ssh_url":"git@github.com:alex/django-filter.git","clone_url":"https://github.com/alex/django-filter.git","svn_url":"https://github.com/alex/django-filter","homepage":"https://django-filter.readthedocs.org","size":1828,"stargazers_count":1208,"watchers_count":1208,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":264,"mirror_url":null,"open_issues_count":13,"forks":264,"open_issues":13,"watchers":1208,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/alex/django-filter/pulls/301"},"html":{"href":"https://github.com/alex/django-filter/pull/301"},"issue":{"href":"https://api.github.com/repos/alex/django-filter/issues/301"},"comments":{"href":"https://api.github.com/repos/alex/django-filter/issues/301/comments"},"review_comments":{"href":"https://api.github.com/repos/alex/django-filter/pulls/301/comments"},"review_comment":{"href":"https://api.github.com/repos/alex/django-filter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alex/django-filter/pulls/301/commits"},"statuses":{"href":"https://api.github.com/repos/alex/django-filter/statuses/82bb9315a14e7f096dea8746695f45cf5c9663dc"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":1,"review_comments":0,"commits":2,"additions":40,"deletions":2,"changed_files":3}}