readonly_fields=('campo',)El jueves, 16 de julio de 2009 22:11:20 UTC-5, Rubens Altimari escribió: > > Hello, > > Is there a way to show model fields in admin, but prevent them from > being edited? Using 'editable=False' in the model won't do, since then > the field simply is not displayed. > > Also, on a related topic: is there a simple way to allow the user to > set a certain field when *creating* a new record, but then "lock" the > field from further changes? Similar to the previous question, only I > wanted to allow the field to be set when creating the record. > > Thanks in advance, > Rubens > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/420bce1d-f7b3-4bce-a92f-f41c62b1ff55%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

