{"action":"created","issue":{"url":"https://api.github.com/repos/macropin/django-registration/issues/22","labels_url":"https://api.github.com/repos/macropin/django-registration/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/macropin/django-registration/issues/22/comments","events_url":"https://api.github.com/repos/macropin/django-registration/issues/22/events","html_url":"https://github.com/macropin/django-registration/issues/22","id":54801215,"number":22,"title":"Assumption that user models have 'username' field","user":{"login":"dpoirier","id":2788679,"avatar_url":"https://avatars.githubusercontent.com/u/2788679?v=3","gravatar_id":"","url":"https://api.github.com/users/dpoirier","html_url":"https://github.com/dpoirier","followers_url":"https://api.github.com/users/dpoirier/followers","following_url":"https://api.github.com/users/dpoirier/following{/other_user}","gists_url":"https://api.github.com/users/dpoirier/gists{/gist_id}","starred_url":"https://api.github.com/users/dpoirier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpoirier/subscriptions","organizations_url":"https://api.github.com/users/dpoirier/orgs","repos_url":"https://api.github.com/users/dpoirier/repos","events_url":"https://api.github.com/users/dpoirier/events{/privacy}","received_events_url":"https://api.github.com/users/dpoirier/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-01-19T19:11:25Z","updated_at":"2015-01-21T05:31:46Z","closed_at":null,"body":"There's a built-in assumption that all user models have a field named `username` .  If django-registration-redux instead looked at `get_user_model().USERNAME_FIELD`, it would handle custom user models better, I think."},"comment":{"url":"https://api.github.com/repos/macropin/django-registration/issues/comments/70786847","html_url":"https://github.com/macropin/django-registration/issues/22#issuecomment-70786847","issue_url":"https://api.github.com/repos/macropin/django-registration/issues/22","id":70786847,"user":{"login":"macropin","id":247192,"avatar_url":"https://avatars.githubusercontent.com/u/247192?v=3","gravatar_id":"","url":"https://api.github.com/users/macropin","html_url":"https://github.com/macropin","followers_url":"https://api.github.com/users/macropin/followers","following_url":"https://api.github.com/users/macropin/following{/other_user}","gists_url":"https://api.github.com/users/macropin/gists{/gist_id}","starred_url":"https://api.github.com/users/macropin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/macropin/subscriptions","organizations_url":"https://api.github.com/users/macropin/orgs","repos_url":"https://api.github.com/users/macropin/repos","events_url":"https://api.github.com/users/macropin/events{/privacy}","received_events_url":"https://api.github.com/users/macropin/received_events","type":"User","site_admin":false},"created_at":"2015-01-21T05:31:46Z","updated_at":"2015-01-21T05:31:46Z","body":"@dpoirier happy to accept a patch here. Looks like an omission as the support for custom user models is new and not well tested."}}