1. You can sub class the form widget of interest to override the render method, and, for example, do "attrs['disabled'] = 'disabled'" before calling the superclass method. This is nasty because some browsers are actually fussy about the fact that the disabled attribute doesn't take a value, but most do the right thing. You may want to also set an additional selector on the 'class' attribute (you need to check whether there already is one and append or set as appropriate) so that you can style this differently. Or you could just do the rendering here yourself, though that's messy, or massage the string returned by the superclass method.
2. If you're going to whine about it taking longer than a couple of hours to get an answer you: a. are in for a frustrating life, and b. should probably think about PAYING someone for support. On Thu, Dec 3, 2009 at 2:29 PM, Todd Blanchard <tblanch...@mac.com> wrote: > From the deafening silence, I'm going to take this as a "no". > > Seems like a pretty basic enhancement - sometimes you want to display data in > the same layout as a form, but not editable (checkboxes disabled, text fields > just styled text....). > > And nobody thought of it? > > On Dec 3, 2009, at 9:05 AM, Todd Blanchard wrote: > >> Forms seem nifty, but sometimes I want to display the data in the same >> format but readonly. Is there a to do this? I can't seem to find it. >> >> -Todd Blanchard >> >> -- >> >> You received this message because you are subscribed to the Google Groups >> "Django users" group. >> To post to this group, send email to django-us...@googlegroups.com. >> To unsubscribe from this group, send email to >> django-users+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/django-users?hl=en. >> >> > > -- > > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.