id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 26231 Hint for non-staff users on admin page refers wrong attribute for username. Sjoerd Job Postmus nobody "In commit 635ffc3c37d58eb96ae17d5389dd50bf635413c6 a block was introduced accessing `username` as `request.user.username`, but it should be accessed using `request.user.get_username`. This breaks on custom models which do not have a `username` attribute or property. (marking with Has patch, because I submitted one on github already)." Bug closed contrib.admin 1.9 Normal fixed Accepted 1 0 1 0 1 0