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.

maeck.



On Nov 20, 11:46 pm, Lars Stavholm <[EMAIL PROTECTED]> wrote:
> Epinephrine wrote:
> > I have a field that should never be edited by hand.  It is basically
> > date_letter_sent, and it should be filled in by a view function when
> > it sends a letter.
>
> > How can I keep the field from being editable in the Admin edit page
> > for that class?
>
> editable = False in the model definition.
> /L
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
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