app.models.base.Base.get_or_create

classmethod Base.get_or_create(**kwargs)