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 attribute. Others have posted similar questions in this forum, but it doesn't look like anyone's found a good solution to this problem. I found http://lazypython.blogspot.com/2008/12/building-read-only-field-in-django.html, but this doesn't appear to work with the current version of Django. Using even one field with the ReadOnlyWidget causes the form to display no fields at all. Is there any reason why the default form fields don't include a readonly option? Thanks, Chris --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

