1👍
✅
It might not be a beautiful solution, but I would imagine that the display names are all still available from form.fields['emails'].choices
so you can loop through form.cleaned_data['emails']
and get the choice name from the field’s choices.
8👍
Ok, hopefully this is closer to what you wanted.
emails = filter(lambda t: t[0] in form.cleaned_data['emails'], form.fields['emails'].choices)
That should give you the list of selected choices that you want.
👤tghw
- [Django]-Deleting the tags that are not used by any other object
- [Django]-Changing package install order in Python
- [Django]-Upgrade 1.7.4 to django 1.8 south.db.mysql error, not using South
Source:stackexchange.com