#26231: Hint for non-staff users on admin page refers wrong attribute for username. -------------------------------+-------------------- Reporter: sjoerdjob | Owner: nobody Type: Bug | Status: new Component: contrib.admin | Version: 1.9 Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 1 Easy pickings: 1 | UI/UX: 0 -------------------------------+-------------------- 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). -- Ticket URL: <https://code.djangoproject.com/ticket/26231> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/052.e5c855845b06ee57338131c31b9f8513%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.