aboutsummaryrefslogtreecommitdiff
path: root/src/mailman_pgp/styles/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman_pgp/styles/base.py')
-rw-r--r--src/mailman_pgp/styles/base.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mailman_pgp/styles/base.py b/src/mailman_pgp/styles/base.py
index dd8e76b..caa7775 100644
--- a/src/mailman_pgp/styles/base.py
+++ b/src/mailman_pgp/styles/base.py
@@ -29,12 +29,13 @@ class PGPStyle:
"""Creates the encrypted mailing list instance for the list it's
applied to.
"""
+ mailing_list.posting_chain = 'pgp-posting-chain'
+
pgp_list = PGPMailingList.query().filter_by(
- list_id=mailing_list.list_id).first()
+ list_id=mailing_list.list_id).first()
if pgp_list:
return
pgp_list = PGPMailingList(mailing_list)
with transaction() as session:
session.add(pgp_list)
- mailing_list.posting_chain = 'pgp-posting-chain'