On Tue, Mar 10, 2009 at 7:01 AM, NoviceSortOf <dljonsson2...@gmail.com>wrote:

>
>
> Glad to report taking a closer look at the code and documentation and
> a few minor edits of the code --now both single model instance and
> formset iterable html display are working.
>
> I did notice when looping with formset my html syntax had to be
> changed from "field" to "form" and from "form" to "formset.forms"
> ie. with Formsets {% for form in formset.forms %}
>    with Form {% for field in form %}
>
> The remaining problem I have is getting formset.author and
> formset.title not to appear as editable fields
>
> ie.
> {{ form.select }}{{ form.author }}{{ form.title }}
> returns the checkbox as defined in view.py but
> author and title appear in editable character fields like...
>  [ ] [Stevenson  ] [Collected Works        ]
>
> How can I simply display the values of the fields and not make them
> editable?
>
>
> >
>
Django doesn't have a built in way to do a non-editable fields, I did a blog
post on one way a little while ago:
http://lazypython.blogspot.com/2008/12/building-read-only-field-in-django.html

Alex

-- 
"I disapprove of what you say, but I will defend to the death your right to
say it." --Voltaire
"The people's good is the highest law."--Cicero

--~--~---------~--~----~------------~-------~--~----~
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