Hook for controlling the creation of an model instance. Override this if you need to do more with your
        data before saving your object than just mapping the deserialized data to a new instance of ``self.model``.

def perform_create(self, data):
        """
        Hook for controlling the creation of an model instance. Override this if you need to do more with your
        data before saving your object than just mapping the deserialized data to a new instance of ``self.model``.
        """

        instance = self.model(**data)
        self.request.dbsession.add(instance)
        self.request.dbsession.flush()
        return instance