Re: Changing admin template for only certain models

2006-11-01 Thread Aidas Bendoraitis
Hello iain! Yesterday I faced the same problem with changing change_list_results.html, so I circumvented it adding custom javascript in admin/myapp/mymodel/change_list.html. The Javascript adds additional rows to the table with links using DOM. Depending on the results you want to achieve, you c

Re: Changing admin template for only certain models

2006-10-31 Thread iain duncan
On Tue, 2006-31-10 at 20:19 -0600, James Bennett wrote: > On 10/31/06, iain duncan <[EMAIL PROTECTED]> wrote: > > I would like to change the template ( or change behaviour ) for the > > change list view, but only for one model. Can anyone tell me how one > > could find out in the template which mo

Re: Changing admin template for only certain models

2006-10-31 Thread iain duncan
> When Django renders the list, it looks for the following templates, in > order, and uses the first one it finds: > > admin/appname/modelname/change_list.html > admin/appname/change_list.html > admin/change_list.html > > Where 'appname' and 'modelname' are the names of the application and > th

Re: Changing admin template for only certain models

2006-10-31 Thread iain duncan
On Tue, 2006-31-10 at 20:19 -0600, James Bennett wrote: > On 10/31/06, iain duncan <[EMAIL PROTECTED]> wrote: > > I would like to change the template ( or change behaviour ) for the > > change list view, but only for one model. Can anyone tell me how one > > could find out in the template which mo

Re: Changing admin template for only certain models

2006-10-31 Thread James Bennett
On 10/31/06, iain duncan <[EMAIL PROTECTED]> wrote: > I would like to change the template ( or change behaviour ) for the > change list view, but only for one model. Can anyone tell me how one > could find out in the template which model we are representing? Or > alternately, where in the admin co