views:

100

answers:

2

I have a form. Once the form is filled I don't want the user to change anything in the form.

But the user can see the values. Meaning all the fields are non editable. I can do this by using instance method but this does not help in foreignkey.

A: 

Depends on what you mean "once the form is filled".

If it's an html form post, just render a new html page with simple text and values of the submitted form.

If the post-back was an ajax call, you can change the CSS-styling of the elements for example and disable the submit button or erase the whole and substitute the values that you get back from ajax request.

There is no "editable=False" property on html input elements btw.

drozzy
i know but if it can be simple then why not use that
ha22109
A: 

you can use readonlyAdmin

ha22109
Oh yah.. that's very "simple" :-)
drozzy