Sunday, April 10, 2011

Re: output as input *.html

I mean maybe there is some special function in Django
which display any model field as input field in *.html.

I mean instead of generating simple text in *.html
{{ model.fieldValue_which_is_displayed_as_text }}
generates editable *.html
[[ model.fieldValue_which_is_possible_to_edit_and_is_saved_BACK_automatically_to_model ]]


On Feb 10, 8:21 am, gintare <g.statk...@gmail.com> wrote:
> Now if i ^filter out and display model objects they come as a text
> information.
> I can only read it. It is not possible to make and save changes
> directly in *.html.
>
> Maybe there is some function which i overlooked by reading
> documentation, which displays model fields as input with initial
> values from database.
>
> This is possible in admine site.
> Maybe it is also possible in custom template.
>
> Now i am using plain html syntax an tag dictionaries to assign name
> and value for radio, check boxes, text areas, buttons...

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment