add text to the choice_label of ChoiceField in Django
- by pablo
The ChoiceField creates a select html element and the options show the choice_label which is the _unicode_ of each model object.
How can I change the text of the choice_label without modifying _unicode_ ?
I have a Product model and I want to show in the options text the product name + price + link to edit.
I've searched in fields.py and widgets.py but couldn't find what needed to be changed.
Thanks