diff options
| author | J08nY | 2017-06-27 16:13:45 +0200 |
|---|---|---|
| committer | J08nY | 2017-06-27 16:13:45 +0200 |
| commit | fc513a7842fdc19317c3ffdd5ec75a00db24a7bf (patch) | |
| tree | 5956dc6d4fa03913b0c344f91a59988d7de4dd1e /src/mailman_pgp/model/base.py | |
| parent | 6622789ed4f0fac49a451d77b823d0debe059cec (diff) | |
| download | mailman-pgp-fc513a7842fdc19317c3ffdd5ec75a00db24a7bf.tar.gz mailman-pgp-fc513a7842fdc19317c3ffdd5ec75a00db24a7bf.tar.zst mailman-pgp-fc513a7842fdc19317c3ffdd5ec75a00db24a7bf.zip | |
Diffstat (limited to 'src/mailman_pgp/model/base.py')
| -rw-r--r-- | src/mailman_pgp/model/base.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mailman_pgp/model/base.py b/src/mailman_pgp/model/base.py index f5d8e77..16aa6cb 100644 --- a/src/mailman_pgp/model/base.py +++ b/src/mailman_pgp/model/base.py @@ -19,8 +19,7 @@ from public import public from sqlalchemy.ext.declarative import as_declarative - -from mailman_pgp.database import query +from mailman_pgp.config import config @public @@ -36,7 +35,7 @@ class Base: :return: A query on class. :rtype: sqlalchemy.orm.query.Query """ - return query(cls) + return config.db.session.query(cls) from mailman_pgp.model.address import PGPAddress # noqa |
