django-newsletter
django-newsletter copied to clipboard
dynamic subscription
Hi @dokterbob et al!
I'm thinking of a new feature and would like to get your feedback on it. I'm going to do it on my own repo but I think it can be useful for others and could be merged.
The feature is a dynamic/subscriptionless newsletter. The idea is to have code that dynamically chooses who to send messages to, at the moment of submitting a message. This can be done two ways:
- Use an existing newsletter and add a
filter_classoption to theMessage. This filter class will have a method that returnsTrueorFalseon subscriptions and this will be used to dynamically select who receives this message - Add a new type of
Newsletterthat doesn't haveSubscriptionobjects but rather asubscription_generator_classthat dynamically produces the list of recipients that should get the message.
Either of these dynamic mechanisms will be triggered when the message is submitted.
Would love to have your feedback, any potential issues that I'm not seeing, etc
would love to see your pull request
@dokterbob @woodz-
Hi! I created a PR for this feature https://github.com/jazzband/django-newsletter/pull/367