{"action":"opened","issue":{"url":"https://api.github.com/repos/yourlabs/django-autocomplete-light/issues/518","labels_url":"https://api.github.com/repos/yourlabs/django-autocomplete-light/issues/518/labels{/name}","comments_url":"https://api.github.com/repos/yourlabs/django-autocomplete-light/issues/518/comments","events_url":"https://api.github.com/repos/yourlabs/django-autocomplete-light/issues/518/events","html_url":"https://github.com/yourlabs/django-autocomplete-light/issues/518","id":114837677,"number":518,"title":"Custom default manager with filters by request/site","user":{"login":"aibon","id":309319,"avatar_url":"https://avatars.githubusercontent.com/u/309319?v=3","gravatar_id":"","url":"https://api.github.com/users/aibon","html_url":"https://github.com/aibon","followers_url":"https://api.github.com/users/aibon/followers","following_url":"https://api.github.com/users/aibon/following{/other_user}","gists_url":"https://api.github.com/users/aibon/gists{/gist_id}","starred_url":"https://api.github.com/users/aibon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aibon/subscriptions","organizations_url":"https://api.github.com/users/aibon/orgs","repos_url":"https://api.github.com/users/aibon/repos","events_url":"https://api.github.com/users/aibon/events{/privacy}","received_events_url":"https://api.github.com/users/aibon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-03T15:10:49Z","updated_at":"2015-11-03T15:10:49Z","closed_at":null,"body":"I'm trying to get the following to work: \r\n\r\nM2M Field, filtered by site (determined during request by subdomain). A custom default manager which does all the filtering takes care of that.\r\n\r\nAutocomplete's registry picks up the default manager (with wrong user filters), so i'm overriding choices_for_request and run in the [mentioned error]\r\n(https://github.com/yourlabs/django-autocomplete-light/blob/d87a3ba8be745ff3e5142d9438f3b8318f4bf547/docs/source/autocomplete.rst#overriding-the-queryset-of-a-model-autocomplete-to-secure-an-autocomplete)\r\n\r\nIs there a place where i can override the queryset used by django for validation? Of course I could change the default manager back and rewrite all relevant parts in my code to use another manager, but that really seems like the wrong way around.\r\n"}}