Admin question: how to show uneditable fields

9 views
Skip to first unread message

EBunders

unread,
Jun 18, 2009, 7:44:30 AM6/18/09
to Django developers
Hello

I am new to django, and am in the process of discovering what it can
and can not do (out of the box). We are primarily interested in jango
as a content generation tool, so I am focusing on modeling and using
the admin site.
One thing I can't realy figure out is how to show fields in admin
forms without editing them.
One good example for such a feature is the Choice.votes field of poll
tutorial: Poll votes should normally not be editable for site
editors, but you would like to show it.
The same applies to meta information like 'author' or 'creationdate'.

The logical approach would be to set the Field.editable field to
False, and then include the field in your ModelAdmin specialization.
But this yields an error.

I'v been through the sourcecode for a bit to find an answer to this,
but so far no luck, so I thought I try this. It seems such an obvious
feature that i can't believe it is missing.

can anybody help?

regards,

Ernst Bunders

Karen Tracey

unread,
Jun 18, 2009, 8:31:42 AM6/18/09
to django-d...@googlegroups.com
Please ask "How do I..." questions on the django-users mailing list.  This list is for discussion of the development of Django itself.

Karen

Ernst Bunders

unread,
Jun 18, 2009, 9:43:48 AM6/18/09
to django-d...@googlegroups.com
ok, thanks
--
Ernst bunders
Ontwikkelaar VPRO

M. N. Islam Shihan

unread,
Jun 18, 2009, 9:59:47 AM6/18/09
to django-d...@googlegroups.com
no one at this group. this group is intended to discuss about django
development of django framework itself by the core developers. try
django-users group instead which is intended to discuss usage related
issues.
Reply all
Reply to author
Forward
0 new messages