def _create_one(self, ctx):
        """
        Creates an instance to be saved when a model is created.
        """
        assert isinstance(ctx, ResourceQueryContext)

        fields = dict_pick(ctx.data, self._model_columns)
        model = self.model_cls(**fields)
        return model
Creates an instance to be saved when a model is created.