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): ...@@ -69,7 +69,7 @@ class Subscriber(models.Model):
except subprocess.CalledProcessError: except subprocess.CalledProcessError:
# maybe an error because email is already registered? # maybe an error because email is already registered?
result = subprocess.run( result = subprocess.run(
['listadmin', '-l', 'newsletter-panik'], check=True, capture_output=True, text=True ['listadmin', '-l', settings.NEWSLETTER_NAME], check=True, capture_output=True, text=True
) )
if self.email in result.stdout.splitlines(): if self.email in result.stdout.splitlines():
self.is_registered = True 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