Make Django's contrib.auth tests work

Non-hashed usernames and fetching by usernames still work, if the program
does everything through the standard User model. This makes Django's
built-in contrib.auth tests function.