Re: django admin objectaction confirmation

2016-01-19 Thread 张超
Sorry to trouble you again! I want to override the change_from.html included in the pacakage django_object_actions/templates/django_object_actions/ ...I copy the change_from.html and put it in my app directory- myapp/templates/admin/django_object_actions/ ,then I add my code...but it can't

Re: django admin objectaction confirmation

2016-01-19 Thread 张超
Thank you very much! 在 2016年1月19日星期二 UTC+8下午3:14:49,Andréas Kühne写道: > > 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/ > >

Re: django admin objectaction confirmation

2016-01-18 Thread Andreas Kuhne
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,

django admin objectaction confirmation

2016-01-18 Thread 张超
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