Commit 3065a75e authored by fred's avatar fred
Browse files

do not hardcode mailing list name

parent c55da72b
......@@ -69,7 +69,7 @@ class Subscriber(models.Model):
except subprocess.CalledProcessError:
# maybe an error because email is already registered?
result =
['listadmin', '-l', 'newsletter-panik'], check=True, capture_output=True, text=True
['listadmin', '-l', settings.NEWSLETTER_NAME], check=True, capture_output=True, text=True
if in result.stdout.splitlines():
self.is_registered = True
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment