Ville Säävuori wrote:
Replying to myself
> This would be great. But I think it would be better to name the
> templates __foo.html. It would make the customization of
> admin pages very easy and Django-like.
D'oh. After looking the admin source code, this allready works! I
wonder howcome it isn
Replying to myself
This would be great. But I think it would be better to name the
templates __foo.html. It would make the customization of
admin pages very easy and Django-like.
D'oh. After looking the admin source code, this allready works! I
wonder howcome it isn't documented? (Or is it?)
ao wrote:
_change_list.html instead of original one. If it somehow did the
same like with generic views where it looks for a _detail.html
but loads a default detail.html if former does not exist.
+1 from me.
This would be great. But I think it would be better to name the
templates __foo.html
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
Gary Wilson wrote:
Looking at my ticket again, I am thinking it would be better to put the
block tag in the admin/base_site.html template, that way any other page
extending admin/base_site.html could add custom object tools instead of
just the change_list page.
I meant admin/base.html. Added
FYI, I filed a ticket [1] about this same topic last week, but I was
asking for an extra block tag in the change_list template. I am
assuming that you are also putting the object_tool_links on the
change_list page?
Looking at my ticket again, I am thinking it would be better to put the
block tag
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