Re: Setting readonly_fields dynamically

2010-04-29 Thread Nick
Yes that works, totally missed the get_readonly_fields method - thanks! Nick On Apr 29, 4:40 pm, Daniel Roseman wrote: > On Apr 29, 3:43 pm, Nick wrote: > > > > > > > Hi, > > > I would like to set some fields to be readonly in the Admin app based > > on some logic, and would like to use the ne

Re: Setting readonly_fields dynamically

2010-04-29 Thread Daniel Roseman
On Apr 29, 3:43 pm, Nick wrote: > Hi, > > I would like to set some fields to be readonly in the Admin app based > on some logic, and would like to use the new readonly_fields attribute > of ModelAdmin if possible (rather than some other sort of hack). > > I'm trying to access readonly_fields, but

Setting readonly_fields dynamically

2010-04-29 Thread Nick
Hi, I would like to set some fields to be readonly in the Admin app based on some logic, and would like to use the new readonly_fields attribute of ModelAdmin if possible (rather than some other sort of hack). I'm trying to access readonly_fields, but get the error "'GalleryForm' object has no at