Re: customizing admin template - how to refer to specific field

2009-07-22 Thread sico
This has been put in the "too hard" basket for now. I'm upgrading from django 0.96 to 1.0.2 and was hoping to make this custom view a configured admin view but am leaving that till later now as it's taking too much time away from porting the rest of the system. On Jul 21, 11:43 am, sico

Re: customizing admin template - how to refer to specific field

2009-07-20 Thread sico
Yeah, that will do it, but it will get cumbersome quite quickly... I'm thinking if I override the change_view and add_view functions on the admin model I can set the fieldsets variable however I like! My system is down at the moment so I can't test it... does that sound like it will work? I'll

Re: customizing admin template - how to refer to specific field

2009-07-20 Thread Joshua Russo
On Mon, Jul 20, 2009 at 10:26 PM, sico wrote: > > thats cool to know, but not quite what I'm after I don't think. If > there was a simple way to display the label, field and any errors all > at once would be nice otherwise it gets quite cumbersome to be > repeating that

Re: customizing admin template - how to refer to specific field

2009-07-20 Thread sico
thats cool to know, but not quite what I'm after I don't think. If there was a simple way to display the label, field and any errors all at once would be nice otherwise it gets quite cumbersome to be repeating that all each time. Basically what I want to be able to do is to show different

Re: customizing admin template - how to refer to specific field

2009-07-20 Thread rajeesh
On Jul 20, 9:38 am, sico wrote: > Its quite simple to customize the admin template for a specific model > by creating a change_form.html in the templates/admin// > / directory. > > But, is it possible to refer to particular fields in the model/form > directly? > > Instead

customizing admin template - how to refer to specific field

2009-07-19 Thread sico
Its quite simple to customize the admin template for a specific model by creating a change_form.html in the templates/admin// / directory. But, is it possible to refer to particular fields in the model/form directly? E.g. Instead of using the loops: for fieldset in adminform: for