Re: Custom Model action in Django Admin

2020-05-27 Thread Anubhav Madhav
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. >

Re: Custom Model action in Django Admin

2020-05-27 Thread Anubhav Madhav
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 pro

Custom Model action in Django Admin

2020-05-27 Thread Anubhav Madhav
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