Opened 9 years ago

Closed 9 years ago

#1160 closed enhancement (invalid)

Add get_<choicesfield>_display() to the docs

Reported by: Jorge Gajon Owned by: jacob
Component: Documentation Version:
Severity: trivial Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:



I have a model with a field with "choices" set, but couldn't find how to display the human readable (second part) of the choice in a template. Until I found at the irc logs a mention that there is a "get_<whatever>_display" method to do that.

I couldn't find a reference to that method anywhere on the docs. I just wanted to mention that maybe it would be good to add it somewhere, probably right in the Model Reference page, under the choices description.

Attachments (0)

Change History (1)

comment:1 Changed 9 years ago by adrian

  • Resolution set to invalid
  • Status changed from new to closed

Add Comment

Modify Ticket

Change Properties
<Author field>
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.