+On Sat, Oct 22, 2011 at 12:05 PM, Asif Jamadar <[email protected]> wrote: [...] > It is returning the value ( I,e attr1 or attr2) .in this case how can I get > the label(or name) of the choicefield. > > > I tried > > for val in cf.fields['value'].choices: [...]
Since you created the form, would you not already know the labels? In any case, what you are after is probably cf.fields['value'].label.title() Regards, Gora _______________________________________________ BangPypers mailing list [email protected] http://mail.python.org/mailman/listinfo/bangpypers
