Re: Using Forms to display and edit?

2009-12-15 Thread Doug Blank
On Tue, Dec 15, 2009 at 5:45 PM, Margie Roginski wrote: > When I want to just display data in a form (as opposed to letting user > edit it), I create a specialized widget.  For example, I have a model > that has multiple datetime fields, and I don't want the user to be > able to edit them, but I d

Re: Using Forms to display and edit?

2009-12-15 Thread Margie Roginski
When I want to just display data in a form (as opposed to letting user edit it), I create a specialized widget. For example, I have a model that has multiple datetime fields, and I don't want the user to be able to edit them, but I do want to display their values. Here's a widget I use where you

Using Forms to display and edit?

2009-12-15 Thread Doug Blank
Django users, I'm wrestling with how to best create HTML pages that can either be used for displaying or editing data. That is, I'd like the field's values to appear as text in display mode, but in their widgets when in edit/add mode. It appears that Django wasn't designed to do this: the fields a