On Jan 10, 2011, at 12:54 PM, hank23 wrote: > Is there something like a label widget available? If so where is it > defined? I didn't notice it listed in the forms wigdets document at: > > http://docs.djangoproject.com/en/1.2/ref/forms/widgets/ >
I just found this. Hopefully someone will let us know if there's a better method: http://stackoverflow.com/questions/324477/in-a-django-form-how-to-make-a-field-readonly-or-disabled-so-that-it-cannot-be Pay attention to the notice about how this method (highest-ranked answer) doesn't actually remove it from the form, and a malicious user can still POST a value. Also, see the comment at the bottom about the 'readonly' attr in 1.2. I couldn't find it in a quick search of the docs, but I didn't grep the source code. Shawn -- 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.