From: Leon <LeonChen8...@gmail.com>
Date: Mon, 14 Apr 2008 04:04:01 -0700 (PDT)
Local: Mon, Apr 14 2008 9:04 pm
Subject: Re: How to overwrite the hyperlink of objects in change list template of django admin?
I've tried that method and make my own object list in the customized
change_list.html. That REALLY duplicate a lot of works. Is it possible to add a hook function (middleware?) just before the change_list template being rendered? In that way, I might be able to modify the data before it is passed to template. I had expected there is a magic function in model class to change it. :
On Apr 14, 9:23 am, Malcolm Tredinnick <malc...@pointy-stick.com>
> On Sun, 2008-04-13 at 06:20 -0700, Leon wrote:
> > Hi, > > I use django admin to manage a table. There is a hyperlink for > > each object in the change_list template, which will bring me to the > > change_form template. I want to change that hyperlink and redirect it > > to another url to handle. I didn't want to customize the current > > change_form for this model because it is still used somewhere else. > > Anybody knows how to do it? > It's possible, but fairly fiddly. You can create a custom
> Note that this sort of customisation does require you to read some
> Regards,
> --
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||