'Generically create a new model.'

def create(self, flush=True, *args, **kwargs):

    item = self.model_class(*args, **kwargs)
    self.session().add(item)
    if flush:
        self.session().flush()
    return item
