On Feb 7, 10:57 pm, Ian Stokes-Rees <ijsto...@hkl.hms.harvard.edu>
wrote:
> I love the fact that I can quickly and easily get a "view" of my objects in
> Django, but is there any current way to get "read-only" views of objects
> where fields are not editable?  I want to be able to display the "forms"
> once they are completed but with the fields displayed just as table entries
> or textareas which can't be edited.  In other words, no <input> or <label>
> tags.
Read-only forms/fields are a popular topic, but not supported in
django.  To display data, simply put the data object (i.e. a model
instance) itself in a template context and render it.

Perhaps this would be of use to you:
http://docs.djangoproject.com/en/dev/ref/contrib/formtools/form-preview/

Aryeh Leib

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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.

Reply via email to