def create_user(self, email, password=None, **extra_fields):
    '\n        Creates and saves a User with the given email and\n        password.\n        '
    now = timezone.now()
    if (not email):
        raise ValueError('The given email must be set')
    email = UserManager.normalize_email(email)
    user = self.model(email=email, is_staff=False, is_active=True, is_superuser=False, last_login=now, date_joined=now, **extra_fields)
    user.set_password(password)
    user.save(using=self._db)
    return user
Creates and saves a User with the given email and
password.
def create_user(self, email, password=None, **extra_fields):
    '\n        Creates and saves a User with the given email and\n        password.\n        '
    now = timezone.now()
    if (not email):
        raise ValueError('The given email must be set')
    email = UserManager.normalize_email(email)
    user = self.model(email=email, is_staff=False, is_active=True, is_superuser=False, last_login=now, date_joined=now, **extra_fields)
    user.set_password(password)
    user.save(using=self._db)
    return user