#13233: readonly_fields doesn't work with fields not part of the model
-------------------------------------------+--------------------------------
Reporter: benc | Owner: nobody
Status: closed | Milestone:
Component: django.contrib.admin | Version: 1.2-beta
Resolution: wontfix | Keywords: admin,
readonly_fields
Stage: Unreviewed | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
-------------------------------------------+--------------------------------
Changes (by russellm):
* status: new => closed
* needs_better_patch: => 0
* resolution: => wontfix
* needs_tests: => 0
* needs_docs: => 0
Comment:
I'm afraid I don't see why this should be possible. What data is going to
populate the field when it is marked readonly?
If you want to display 'extra' data, then do exactly what the error
message says - make it an attribute or callable on MyModelAdmin or MyModel
-- see
[http://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.list_display
the docs for list_display] for details on how to do this.
--
Ticket URL: <http://code.djangoproject.com/ticket/13233#comment:1>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" 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-updates?hl=en.