Re: Customizable object tools

2006-12-20 Thread ao
I saw your ticket got patched and changed my code to use templates for extended object tools. Works great but still gets a bit messy when i have to create new template file for each model I want to have one extra link and then write code to load that custom _change_list.html instead of original o

Customizable object tools

2006-12-19 Thread ao
Hi, At least a couple of times I needed to add additional links in a changelist page (like "Add Item+"). So I tweaked admin code to accept "object_tool_links" attribute in model's Admin class where I specify a 3-tuple (link_text, link_href, classes) eg. ('Clean Up', 'cleanup/', 'customlink someot