Opened 10 years ago

Closed 10 years ago

Last modified 9 years ago

#468 closed enhancement (fixed)

[patch] Add accessor method to get human readable value for fields with a choice list.

Reported by: robert@… Owned by: adrian
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: UI/UX:


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)

django-choices-accessor.patch (1.2 KB) - added by robert@… 10 years ago.

Download all attachments as: .zip

Change History (4)

Changed 10 years ago by robert@…


comment:1 Changed 10 years ago by adrian

  • Status changed from new to assigned

comment:2 Changed 10 years ago by adrian

Only thing holding us back at this point is the name of the accessor method. See for discussion.

comment:3 Changed 10 years ago by adrian

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [687]) Fixed #468 -- Model classes now get an accessor method to get the human-readable value for each field that has 'choices' set. Thanks, Robert

Note: See TracTickets for help on using tickets.
Back to Top