Okay!! I have solved it myself:
the mistake was that 'subscribers' is itself a list, so 'to_email' should
be 'sub' instead of '[sub]'.
Thank You
On Wednesday, 27 May 2020 14:01:28 UTC+5:30, Anubhav Madhav wrote:
>
> Hello everyone!!
>
> I have stuck in the middle of my project. Please help.
>
>
Please refer to this to understand the doubt more clearly:
https://stackoverflow.com/questions/62038925/custom-model-action-function-in-django-admin
On Wednesday, 27 May 2020 14:01:28 UTC+5:30, Anubhav Madhav wrote:
>
> Hello everyone!!
>
> I have stuck in the middle of my project. Please help
Hello everyone!!
I have stuck in the middle of my project. Please help.
I have created a custom function within a model, which sends a newsletter
email to the subscribed users. I registered this model action in admins.py
, so that I can perform that action using admin panel.
After that, when
3 matches
Mail list logo