{"action":"opened","issue":{"url":"https://api.github.com/repos/carltongibson/django-filter/issues/397","repository_url":"https://api.github.com/repos/carltongibson/django-filter","labels_url":"https://api.github.com/repos/carltongibson/django-filter/issues/397/labels{/name}","comments_url":"https://api.github.com/repos/carltongibson/django-filter/issues/397/comments","events_url":"https://api.github.com/repos/carltongibson/django-filter/issues/397/events","html_url":"https://github.com/carltongibson/django-filter/issues/397","id":144546271,"number":397,"title":"Improve Documentation around use of MultipleChoiceFilter","user":{"login":"andybak","id":60035,"avatar_url":"https://avatars.githubusercontent.com/u/60035?v=3","gravatar_id":"","url":"https://api.github.com/users/andybak","html_url":"https://github.com/andybak","followers_url":"https://api.github.com/users/andybak/followers","following_url":"https://api.github.com/users/andybak/following{/other_user}","gists_url":"https://api.github.com/users/andybak/gists{/gist_id}","starred_url":"https://api.github.com/users/andybak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andybak/subscriptions","organizations_url":"https://api.github.com/users/andybak/orgs","repos_url":"https://api.github.com/users/andybak/repos","events_url":"https://api.github.com/users/andybak/events{/privacy}","received_events_url":"https://api.github.com/users/andybak/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-30T10:45:13Z","updated_at":"2016-03-30T10:45:13Z","closed_at":null,"body":"See #137 especially https://github.com/carltongibson/django-filter/issues/137#issuecomment-37820702\r\n\r\nNot sure if this is purely a DRF issue but the minimum needed to get multiple choice filters working is something like:\r\n\r\n    class MultipleField(MultipleChoiceField):\r\n        def valid_value(self, value):\r\n            return True    \r\n    \r\n    class MultipleFilter(django_filters.MultipleChoiceFilter):\r\n        field_class = MultipleField    \r\n    \r\n    # Then use them:\r\n    class FooFilter(filters.FilterSet):\r\n        bar = MultipleFilter(lookup_type='in')\r\n        class Meta:\r\n            model = Foo\r\n            fields = ['bar']\r\n\r\nIf it's not appropriate to fix this within django-filter then a mention in the docs would save others a stack of time."}}