Okay!! I have solved it myself:
On Wednesday, 27 May 2020 14:01:28 UTC+5:30, Anubhav Madhav wrote:
-- 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.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 I go to django admin panel, and perform the action , it shows me an error:ValueError at /admin/blog/post/
not enough values to unpack (expected 2, got 1)How can I fix this? Please help!!
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/03c64636-cdaa-4328-9f0f-8d324b0794a4%40googlegroups.com.
No comments:
Post a Comment