{"action":"created","issue":{"url":"https://api.github.com/repos/sehmaschine/django-grappelli/issues/571","labels_url":"https://api.github.com/repos/sehmaschine/django-grappelli/issues/571/labels{/name}","comments_url":"https://api.github.com/repos/sehmaschine/django-grappelli/issues/571/comments","events_url":"https://api.github.com/repos/sehmaschine/django-grappelli/issues/571/events","html_url":"https://github.com/sehmaschine/django-grappelli/issues/571","id":56685232,"number":571,"title":"with custom usermodel, username not displayed when logged in","user":{"login":"lvr-dev","id":4962939,"avatar_url":"https://avatars.githubusercontent.com/u/4962939?v=3","gravatar_id":"","url":"https://api.github.com/users/lvr-dev","html_url":"https://github.com/lvr-dev","followers_url":"https://api.github.com/users/lvr-dev/followers","following_url":"https://api.github.com/users/lvr-dev/following{/other_user}","gists_url":"https://api.github.com/users/lvr-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/lvr-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lvr-dev/subscriptions","organizations_url":"https://api.github.com/users/lvr-dev/orgs","repos_url":"https://api.github.com/users/lvr-dev/repos","events_url":"https://api.github.com/users/lvr-dev/events{/privacy}","received_events_url":"https://api.github.com/users/lvr-dev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-05T15:33:55Z","updated_at":"2015-02-05T15:56:20Z","closed_at":null,"body":"I use a custom usermodel with emailaddress as username. I also have a field added to my usermodel called 'userrole'. \r\nThis is an excerpt from my customer usermodel:\r\n    email = models.EmailField()\r\n    userrole = models.CharField(max_length=20, choices=ROLE_CHOICES, default=GUEST)\r\n    USERNAME_FIELD = \"email\"\r\n    REQUIRED_FIELDS = [\"userrole\",]\r\n\r\nAfter installing Grappelli, I no longer see my emailaddress as the loggedin user, I just see '3', which seems to be my userrole-id. The old admin-interface does show my emailaddress as my username. I tried to find out in the docs if there's a setting of some sort for custom usermodels, but apparently there isn't??\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/sehmaschine/django-grappelli/issues/comments/73070127","html_url":"https://github.com/sehmaschine/django-grappelli/issues/571#issuecomment-73070127","issue_url":"https://api.github.com/repos/sehmaschine/django-grappelli/issues/571","id":73070127,"user":{"login":"lvr-dev","id":4962939,"avatar_url":"https://avatars.githubusercontent.com/u/4962939?v=3","gravatar_id":"","url":"https://api.github.com/users/lvr-dev","html_url":"https://github.com/lvr-dev","followers_url":"https://api.github.com/users/lvr-dev/followers","following_url":"https://api.github.com/users/lvr-dev/following{/other_user}","gists_url":"https://api.github.com/users/lvr-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/lvr-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lvr-dev/subscriptions","organizations_url":"https://api.github.com/users/lvr-dev/orgs","repos_url":"https://api.github.com/users/lvr-dev/repos","events_url":"https://api.github.com/users/lvr-dev/events{/privacy}","received_events_url":"https://api.github.com/users/lvr-dev/received_events","type":"User","site_admin":false},"created_at":"2015-02-05T15:56:20Z","updated_at":"2015-02-05T15:56:20Z","body":"django version 1.7 grappelli version 2.6.3"}}