noisebridge / pyclass-project

Other
8 stars 2 forks source link

Make importance on ToDo details page more human-readable #41

Closed Belgand closed 12 years ago

Belgand commented 12 years ago

Please note: this is exactly the same as issue #40. Two issues were created, one for each field, to provide more easy issues for people to work on. If you've already closed #40 please leave it for someone else.

When we display the importance field we're just displaying what's stored in the ToDoItem object which is the machine-readable version, not the human-friendly one. This is because this field was defined through a set of choices in the model that list both a machine-readable and a human-readable option for each choice.

The model should already have a method available to access the human-readable name. Track down this method and use it on the details page for the importance.

Documentation: choices