Re: Getting the selected value on a Django forms.ChoiceField

2013-03-28 Thread Martin J. Laubach
Continent = form.cleaned_data['Continent']Continent = dict(form.fields['Continent'])[Continent] The obvious confusion stemming from the upper case variable aside, the second line is total nonsense. Drop it and you'll be golden. Cheers, mjl -- You received this message because you a

Re: Getting the selected value on a Django forms.ChoiceField

2013-03-28 Thread Tom Evans
On Thu, Mar 28, 2013 at 3:10 PM, amine antri wrote: > i'm working on Djnago and i need to know how can i get selected value in > forms.ChoiceField > > class FilterForm(forms.Form): > Continent = forms.ChoiceField(choices=continents()) > > i tried with : > > def affiche_all(request, currency):