def username(self, username):
        """Set username.

        .. note:: The username will be converted to lowercase. The display name
            will contain the original version.
        """
        validate_username(username)
        self._username = username.lower()
        self._displayname = username
Set username.

        .. note:: The username will be converted to lowercase. The display name
            will contain the original version.