def pre_create_google_user(self, email, **extra_fields):
        values = dict(
            # defaults which can be overridden
            is_active=True,
        )
        values.update(**extra_fields)
        values.update(
            # things which cannot be overridden
            email=self.normalize_email(email),
            username=None,
            password=make_password(None), # unusable password
            # Stupidly, last_login is not nullable, so we can't set it to None.
        )
        return self.create(**values)
Pre-create a User object for a user who will later log in via Google Accounts.
dataset/ETHPy150Open potatolondon/djangae/djangae/contrib/gauth/common/models.py/GaeUserManager.pre_create_google_user