Hi, Check how actions work in the admin interface. You should be able to create something that works the same by clicking on a button. See here: https://docs.djangoproject.com/en/1.9/ref/contrib/admin/actions/
The main point is that if you do a http get, you should show the confirmation page, and if you do a post, the action should happen. Regards, Andréas 2016-01-19 6:53 GMT+01:00 张超 <[email protected]>: > I want to make a confirmation before executing the objectaction when click > the objectaction button ...I have tried to write a js to do that ,but it > doesn't work..how could I make it? > > -- > 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 [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/a718b7d5-813c-4706-8bee-1941c078fba9%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/a718b7d5-813c-4706-8bee-1941c078fba9%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CALXYUbmGSs9em-3uq-f7eZnV_2%3D8tzPtChr0csHitxNGDj458g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

