I'm working on recreating the admin site to match the theme of the current website and it's been fine up till now, but when I try to select multiple users and use the "delete selected users" action nothing happens.
I have a bit of code, so I have it pasted here
The button is called in admin/actions.html on line 4.
From reading the admin-site's source I was able to find the method delete_selected
in admin/actions.py
.I have only been copying and pasting tags from the original admin-site templates to fit my new ones with the site's style, so I can't figure out why the method isn't being passed.
Here's apicture of the finished page, where everything works except that Go
button.
I feel like there might be a way to recreate a template tag to do it for me but I'm not sure what to call or how ?
The check boxes each have the object's ID
as values but I'm not sure why it's not being passed to the 'go' button there.
Sorry, it was the simplest thing. I forgot to include the form
surrounding the table. I hope this question will be helpful to anyone looking to customize the admin-site in the future.
Thanks!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.