Saturday, April 28, 2012

Re: Edit-once object in admin?

On Saturday, April 28, 2012 10:35:40 AM UTC-4, Shawn Milochik wrote:
Override the save() method to raise an exception if " is not None."

But, that still doesn't tell the admin interface to *show* the fields as read-only (which is really what I'm interested in).  If I raise an exception in save(), the admin interface will let somebody edit the fields and then give some sort of error when the click the Save button. 

You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment