def __init__(self, data, model, marker=None): assert isinstance(data, dict) self.schemas = list(get_schemas(model, marker=marker)) self.fields = list(get_schema_fields(model, marker=marker)) self.data = data self.model = model
def __init__(self, data, obj, marker=None): assert isinstance(data, dict) self.schemas = list(get_schemas(obj, marker=marker)) self.fields = list(get_schema_fields(obj, marker=marker)) self.data = data self.obj = obj