#468 closed enhancement (fixed)
[patch] Add accessor method to get human readable value for fields with a choice list.
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | Metasystem | Version: | |
Severity: | normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Sometimes it is useful to access the human readable value of a field with a choices list. Currently (AFAIK) this can only be done by a manipulator.
This patch adds methods to the generated model classes to allow clients to access the human readable value.
Attachments (1)
Change History (4)
by , 19 years ago
Attachment: | django-choices-accessor.patch added |
---|
comment:1 by , 19 years ago
Status: | new → assigned |
---|
comment:2 by , 19 years ago
Only thing holding us back at this point is the name of the accessor method. See http://groups.google.com/group/django-developers/browse_thread/thread/4842f1d47aacfcdc/68622b20ecfd2e49 for discussion.
comment:3 by , 19 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
patch