﻿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
21709	Admin template bug if there is no username field (custom user)	mpecov@…	nobody	"Today is pretty normal to expect that someone will use a custom user model without the username field because he wants to have a simple login via email form.

If you exclude the username field from the user model, the base.html in the contrib.admin will crash because of this line: 
{{{
 <strong>{% firstof user.get_short_name user.get_username %}</strong>.
}}}
So, my suggestion is to make a simple check 
{{{ {% if user.username %} }}}
in this line, and avoid the potential problems 
"	Bug	closed	contrib.admin	1.6	Normal	invalid	admin template		Unreviewed	0	0	0	0	1	0
