On Nov 21, 6:58 pm, maeck <[EMAIL PROTECTED]> wrote:
> Please note that the result of this is that if you use
> 'editable=False' this field is not visible in the admin at all.
> As far as I know there is no good way (see below) of putting read only
> data in an admin page.
>
> You could however, create a read only widget (there are some examples
> to be fund on the internet), however, if you still need to save the
> form, you nee dto keep that data in a hidden form field which opens up
> the possibility of people fiddling with POST data.
>
> Last resort, create your own custom view.

I don't think you really need to create your own custom view. I
achieved this fairly easy with some JavaScript. Just use JS to hide
the input field (because like you said, it still needs to be there)
and append a paragraph after it with the content from that input
field. With a JS library such as jQuery this is something as easy as 3
lines of code.

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to