Hi,
i have a simple form which among other fields has a ChoiceField with
some choices:

CHOICES=(
  (1, u'Bar basf asdf'),
  (2, u'Asdf', qewr'),
  (3, u'Afefafafa saef3')
)

when i receive the form, i do all the usual procedure until i want to
retrieve the value of the choicefield (have to produce a report
so I don't need the value as a number, rather the string
representation of the choice (eg. "Bar basf asdf" instead of "1").

Could you please explain me how to do this? (I mean, without going
manually through the CHOICES)

Thank you very much

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to