#342: Add a way for fields to be displayed in the admin without being editable
--------------------------------------+-------------------------------------
Reporter: Bless | Owner: nobody
Status: reopened | Milestone:
Component: Admin interface | Version: newforms-admin
Resolution: | Keywords: djangocon
Stage: Accepted | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
--------------------------------------+-------------------------------------
Comment (by simon):
Intercepting the form, finding the field that you want to make read-only
and then modifying its widget is a pretty nasty solution for something
that's actually pretty common. It also seems a bit dirty to have a form
field for something with a widget that doesn't actually let you edit it -
if it's a form field, it should be editable. Widgets that display rather
than edit seem pretty hacky to me.
--
Ticket URL: <http://code.djangoproject.com/ticket/342#comment:10>
Django Code <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
-~----------~----~----~----~------~----~------~--~---