{"action":"created","issue":{"url":"https://api.github.com/repos/sshwsfc/django-xadmin/issues/266","labels_url":"https://api.github.com/repos/sshwsfc/django-xadmin/issues/266/labels{/name}","comments_url":"https://api.github.com/repos/sshwsfc/django-xadmin/issues/266/comments","events_url":"https://api.github.com/repos/sshwsfc/django-xadmin/issues/266/events","html_url":"https://github.com/sshwsfc/django-xadmin/issues/266","id":90990854,"number":266,"title":"Filter by user login","user":{"login":"longkeng","id":2831186,"avatar_url":"https://avatars.githubusercontent.com/u/2831186?v=3","gravatar_id":"","url":"https://api.github.com/users/longkeng","html_url":"https://github.com/longkeng","followers_url":"https://api.github.com/users/longkeng/followers","following_url":"https://api.github.com/users/longkeng/following{/other_user}","gists_url":"https://api.github.com/users/longkeng/gists{/gist_id}","starred_url":"https://api.github.com/users/longkeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/longkeng/subscriptions","organizations_url":"https://api.github.com/users/longkeng/orgs","repos_url":"https://api.github.com/users/longkeng/repos","events_url":"https://api.github.com/users/longkeng/events{/privacy}","received_events_url":"https://api.github.com/users/longkeng/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-25T15:07:57Z","updated_at":"2015-09-11T19:15:38Z","closed_at":null,"body":"I need to make django admin show to the user only the data user login enter and non of the other users data.\r\nhttp://stackoverflow.com/questions/9574788/filter-django-admin-by-logged-in-user\r\nAbove of URL guide for default django admin. \r\nXadmin can do this job ?"},"comment":{"url":"https://api.github.com/repos/sshwsfc/django-xadmin/issues/comments/139636527","html_url":"https://github.com/sshwsfc/django-xadmin/issues/266#issuecomment-139636527","issue_url":"https://api.github.com/repos/sshwsfc/django-xadmin/issues/266","id":139636527,"user":{"login":"alexsilva","id":2024086,"avatar_url":"https://avatars.githubusercontent.com/u/2024086?v=3","gravatar_id":"","url":"https://api.github.com/users/alexsilva","html_url":"https://github.com/alexsilva","followers_url":"https://api.github.com/users/alexsilva/followers","following_url":"https://api.github.com/users/alexsilva/following{/other_user}","gists_url":"https://api.github.com/users/alexsilva/gists{/gist_id}","starred_url":"https://api.github.com/users/alexsilva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexsilva/subscriptions","organizations_url":"https://api.github.com/users/alexsilva/orgs","repos_url":"https://api.github.com/users/alexsilva/repos","events_url":"https://api.github.com/users/alexsilva/events{/privacy}","received_events_url":"https://api.github.com/users/alexsilva/received_events","type":"User","site_admin":false},"created_at":"2015-09-11T19:15:38Z","updated_at":"2015-09-11T19:15:38Z","body":"Xadmin does not inherit directly from a parent class and this makes it difficult understanding of its use.\r\nBut just think similarly to standard django admin.\r\n\r\n````\r\nclass FilterUserAdmin(object): \r\n    ....\r\n    def queryset(self): \r\n        qs = super(FilterUserAdmin, self).queryset() \r\n        return qs.filter(created_by=request.user)  # Make the filter here!\r\n```"}}