Re: Read Only Form Field

2009-03-07 Thread Malcolm Tredinnick
On Sat, 2009-03-07 at 08:29 -0800, Chris wrote: [..] > Others have posted similar questions in this forum, but it doesn't > look like anyone's found a good solution to this problem. There have been plenty of reasonable solutions posted to the forum. It's close to trivial to write a class to displ

Read Only Form Field

2009-03-07 Thread Chris
Is it possible to include a field in a ModelForm, and display it with its default widget, but include the readonly="1" attribute so it's not editable? I don't want to make the corresponding Model field not editable, and I don't want to reinvent all the default widgets just to add the readonly att