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

Add an export function

Open sbaechler opened this issue 12 years ago • 3 comments
trafficstars

The admin should be able to export all collected addresses.

sbaechler avatar Oct 07 '13 09:10 sbaechler

Not sure how that should work seeing as you're not forced to use models with newsletter_subscription at all?

matthiask avatar Dec 29 '13 10:12 matthiask

The export function would have to be within the ModelBackend. The user would then have to add an admin template which adds the export function.

You are also calling form.save() in the subscribe-method. This is basically assuming that there is a model.

On the other hand, why are you collecting newsletter addresses in the first place if there is no way to export them?

sbaechler avatar Dec 29 '13 11:12 sbaechler

Oops, that's correct. You are free to supply a save method for other forms as well, but this should be made the responsibility of the backend.

Regarding your last paragraph: What about automatic synchronization for example with mailchimp, cleverreach, whatever? Or maybe a custom backend which does not store the email addresses in a Django-controlled database in the first place, i.e. directly in a mailman store?

(guete rutsch, gli!)

matthiask avatar Dec 29 '13 11:12 matthiask