On 5/06/2012 10:06am, Roy Smith wrote:
The description of editable says:

If False, the field will not be editable in the admin or via forms 
automatically generated from the model class.
To me, this sounds like it will be shown in the admin, just not as an editable 
field (i.e. readonly).  However, when I try setting it to False, my field it 
omitted entirely from the admin.

If it isn't editable there is no need to include it in the Admin. Make it editable (in models.py) and then (in admin.py) make it read-only.

https://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.readonly_fields


What's the intent of editable?  Is this a bug, or is the description in the 
docs just misleading?

You should perhaps adjust the docs to the extent necessary. Seeing as it mentions the admin it might help to include a link to the above read-only reference.


--
Roy Smith
r...@panix.com




--
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to