def create_user(self, username, email, password=None):
    '\n        Creates and saves a User with the given email, date of\n        birth and password.\n        '
    if (not email):
        raise ValueError('Users must have an email address')
    user = self.model(username=username, email=self.normalize_email(email))
    user.set_password(password)
    user.save(using=self._db)
    return user
Creates and saves a User with the given email, date of
birth and password.
def create_user(self, username, email, password=None):
    '\n        Creates and saves a User with the given email, date of\n        birth and password.\n        '
    if (not email):
        raise ValueError('Users must have an email address')
    user = self.model(username=username, email=self.normalize_email(email))
    user.set_password(password)
    user.save(using=self._db)
    return user