diff options
Diffstat (limited to 'src/mailman_pgp/rest/lists.py')
| -rw-r--r-- | src/mailman_pgp/rest/lists.py | 4 |
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): |
