def _create_one(self, ctx):
assert isinstance(ctx, ResourceQueryContext)<EOL>fields = dict_pick(ctx.data, self._model_columns)<EOL>model = self.model_cls(**fields)<EOL>return model<EOL>
Creates an instance to be saved when a model is created.