A signature like `get_username(user)` would also suffice, we're already in the 'django' domain. Also two empty lines should be in-between methods, according to PEP8 styling.