{"action":"opened","issue":{"url":"https://api.github.com/repos/modlinltd/django-advanced-filters/issues/83","repository_url":"https://api.github.com/repos/modlinltd/django-advanced-filters","labels_url":"https://api.github.com/repos/modlinltd/django-advanced-filters/issues/83/labels{/name}","comments_url":"https://api.github.com/repos/modlinltd/django-advanced-filters/issues/83/comments","events_url":"https://api.github.com/repos/modlinltd/django-advanced-filters/issues/83/events","html_url":"https://github.com/modlinltd/django-advanced-filters/issues/83","id":337618957,"node_id":"MDU6SXNzdWUzMzc2MTg5NTc=","number":83,"title":"Customize Results for GetFieldChoices view","user":{"login":"mrname","id":1808790,"node_id":"MDQ6VXNlcjE4MDg3OTA=","avatar_url":"https://avatars0.githubusercontent.com/u/1808790?v=4","gravatar_id":"","url":"https://api.github.com/users/mrname","html_url":"https://github.com/mrname","followers_url":"https://api.github.com/users/mrname/followers","following_url":"https://api.github.com/users/mrname/following{/other_user}","gists_url":"https://api.github.com/users/mrname/gists{/gist_id}","starred_url":"https://api.github.com/users/mrname/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrname/subscriptions","organizations_url":"https://api.github.com/users/mrname/orgs","repos_url":"https://api.github.com/users/mrname/repos","events_url":"https://api.github.com/users/mrname/events{/privacy}","received_events_url":"https://api.github.com/users/mrname/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-02T18:28:20Z","updated_at":"2018-07-02T18:28:20Z","closed_at":null,"author_association":"NONE","body":"Are there any best practices around how to further limit the results of the `GetFieldName` view? In my particular use case, all of the objects in my system belong to an \"account\" via foreign key, and I would like to limit the choices to include only those with the same \"account\" as the filterset being created. For reference, I am looking to implement something similar to the \"forwarding\" feature of Django Autocomplete Light.\r\n\r\nhttps://django-autocomplete-light.readthedocs.io/en/master/tutorial.html?highlight=forwarded\r\n\r\nThe idea being that once the \"account\" is selected in the filterset, it would be forwarded to the `GetFieldChoices` view, and then used to further limit the choices returned.\r\n\r\nI am messing around with trying to implement this myself, but just wanted to see if anybody could offer some guidance or best practices."}}
{"actor":{"display_login":"mrname"}}