def __init__(self, app, *a, **kw): """Extend to make the ``Application`` object available on models at ``.app``. """ Postgres.__init__(self, *a, **kw) for model in MODELS: self.register_model(model) model.app = app
def __init__(self, app, *a, **kw): """Extend to make the ``Application`` object available on models at ``.app``. """ Postgres.__init__(self, *a, **kw) for model in (AccountElsewhere, Community, Country, ExchangeRoute, Participant, Team): self.register_model(model) model.app = app
def __init__(self, url): Postgres.__init__(self, url)