On Tue, 2009-04-07 at 06:55 -0700, pault wrote: > I want to run an action from my admin when I press the GO button > without having to select any objects. > > But it seems actions are only triggered when at least one object is > selected. Does anyone know a workaround for this.
What you're after are not admin actions then, since admin actions are things that apply to multiple objects at once (they're basically batch operations). However, the templates used in the admin are all customisable and overridable, usually on a per-app and even per-model basis. So you can easily add your own extra button(s) that perform some action. Adding your own URL handling to the admin is also documented. Best to use the upcoming 1.1 release (e.g. 1.1-beta now) for that, since it's all much easier. Regards, Malcolm --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---