aboutsummaryrefslogtreecommitdiff
path: root/src/mailman_pgp/rest/lists.py
diff options
context:
space:
mode:
authorJ08nY2017-06-22 15:54:00 +0200
committerJ08nY2017-06-22 15:54:00 +0200
commit54aa6d86be743b6a0f640cd68b25938d02e3dfd7 (patch)
tree1a3dddf828e8ef7f055a02e26b2bcde48db86719 /src/mailman_pgp/rest/lists.py
parent50df74e60b5f67b18470133efd68629d7667d0b0 (diff)
downloadmailman-pgp-54aa6d86be743b6a0f640cd68b25938d02e3dfd7.tar.gz
mailman-pgp-54aa6d86be743b6a0f640cd68b25938d02e3dfd7.tar.zst
mailman-pgp-54aa6d86be743b6a0f640cd68b25938d02e3dfd7.zip
Diffstat (limited to 'src/mailman_pgp/rest/lists.py')
-rw-r--r--src/mailman_pgp/rest/lists.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mailman_pgp/rest/lists.py b/src/mailman_pgp/rest/lists.py
index 0853a35..5279702 100644
--- a/src/mailman_pgp/rest/lists.py
+++ b/src/mailman_pgp/rest/lists.py
@@ -44,7 +44,7 @@ class _EncryptedBase(CollectionMixin):
def _get_collection(self, request):
"""See `CollectionMixin`."""
- return query(PGPMailingList).all()
+ return PGPMailingList.query().all()
@public
@@ -58,7 +58,7 @@ class AllEncryptedLists(_EncryptedBase):
@public
class AnEncryptedList(_EncryptedBase):
def __init__(self, list_id):
- self._mlist = query(PGPMailingList).filter_by(
+ self._mlist = PGPMailingList.query().filter_by(
list_id=list_id).first()
def on_get(self, request, response):