def __init__(self, Model, **kwargs): super().__init__( **kwargs, description='', children={ method_constants.FILTER: FilterSchema(Model), method_constants.GET: GetSchema(Model), method_constants.SET: SetSchemaWithChallenge(Model, origin=set_constants.ORIGIN), account_superadmin_method_constants.LOCK: AccountSuperadminLockSchema(Model), }, )
def __init__(self, Model, mode=None, **kwargs): super().__init__( **kwargs, description='', children={ method_constants.FILTER: FilterSchema(Model), method_constants.GET: GetSchema(Model), method_constants.SET: SetSchemaWithChallenge( Model, mode=mode, origin=set_constants.ORIGIN, ), }, )