@classmethod
def create_user(cls, **kwargs):
    user = User()
    user.active = kwargs.get('active', True)
    user.email = kwargs.get('email', cls.fake.email())
    user.initials = kwargs.get('initials', cls.fake.pystr(min_chars=1, max_chars=4)).upper()
    user.name = kwargs.get('name', cls.fake.name())
    user.password = User.encrypt_password(kwargs.get('password', cls.fake.password()))
    return user.save()
@classmethod
def create_user(cls, **kwargs):
    user = User()
    user.active = kwargs.get('active', True)
    user.email = kwargs.get('email', cls.fake.email())
    user.initials = kwargs.get('initials', cls.fake.pystr(min_chars=1, max_chars=4)).upper()
    user.name = kwargs.get('name', cls.fake.name())
    user.password = User.encrypt_password(kwargs.get('password', cls.fake.password()))
    return user.save()