I want to display an object in exactly the same style as an existing template that looks like this:
<form action="/item/create/" method="post"> {% csrf_token %} <table> {{form}} </table> <input type="submit" value="Submit"/> </form> except that I want all the fields to be read-only. It's easy enough to not include the submit button, but I also want to add readonly="true" attributes to all the <input> tags. Is there any way to do this, sort of some javascript which edits the DOM? -- 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.