django-newsletter icon indicating copy to clipboard operation
django-newsletter copied to clipboard

Add contact_email instead of overriding [email protected]

Open claudep opened this issue 9 years ago • 3 comments
trafficstars

Currently, setting up django-newsletter requires some templates being overridden just for setting the contact email in case of errors (replacing [email protected]).

What about adding a new field in the Newsletter model, something like contact_email (or tech_email or ...) which would then dynamically inserted into the templates?

claudep avatar Jan 09 '16 10:01 claudep

That seems like a good solution, go for it!

Try to give coverage though. I’m super glad we got >80% lately and would love to keep it so.

dokterbob avatar Jan 09 '16 15:01 dokterbob

Couldn't it simply be a global django setting ? Similar to SERVER_EMAIL and DEFAULT_FROM_EMAIL, but dedicated to django-newsletter usage ?

pakal avatar Jul 17 '16 13:07 pakal

As each newsletter might have its own contact email, I'd still privilege a field on the Newsletter model.

claudep avatar Jul 18 '16 09:07 claudep