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:
-- 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/79c9be12-2757-4363-93aa-8cb8e42f2643%40googlegroups.com.
No comments:
Post a Comment