diff options
author | Magnus Hagander | 2019-07-09 09:28:08 +0000 |
---|---|---|
committer | Magnus Hagander | 2019-07-09 09:28:08 +0000 |
commit | e7d97c22d62dd9de8cce1f3077fa497caf11645c (patch) | |
tree | b3863fb267b8f2a095d8adcfdc3819dbf4e2fe06 /postgresqleu/settings.py | |
parent | 6f510100d1fe057c1d6d7cc588835cd9f6f768b2 (diff) |
Create setting for INVOICE_NOTIFICATION_RECEIVER
Instead of assuming that sender == receiver for notifications, make it
possible to have the receiver be a different address, configured with a
separate parameter. If not set, it will be automatically set to
INVOICE_SENDER_EMAIL.
Diffstat (limited to 'postgresqleu/settings.py')
-rw-r--r-- | postgresqleu/settings.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/postgresqleu/settings.py b/postgresqleu/settings.py index 650854f2..d5beeccc 100644 --- a/postgresqleu/settings.py +++ b/postgresqleu/settings.py @@ -113,9 +113,14 @@ INSTALLED_APPS = [ 'postgresqleu.membership', ] -# Emails +# Email address used to send emails from the invoice system, or other +# parts of the "finance" system. INVOICE_SENDER_EMAIL = DEFAULT_EMAIL +# Email address that receives notifications from the invoice system, or +# other parts of the "finance" system. +# INVOICE_NOTIFICATION_RECEIVER = DEFAULT_EMAIL + # Currency parameter CURRENCY_ABBREV = 'EUR' @@ -250,3 +255,6 @@ if ENABLE_MEMBERSHIP: if ENABLE_ELECTIONS: INSTALLED_APPS.append('postgresqleu.elections') + +if 'INVOICE_NOTIFICATION_RECEIVER' not in globals(): + INVOICE_NOTIFICATION_RECEIVER = INVOICE_SENDER_EMAIL |