Re: loop a ChoiceField SelectMultiple form in the view as post

2015-07-13 Thread Vijay Khemlani
To tell you the truth I'm not quite sure what are you trying to accomplish, but for starters if you have a select multiple widget then your form field should be a forms.MultipleChoiceField On Mon, Jul 13, 2015 at 4:38 PM, dk wrote: > I made a quick project with an app, that might be easier to s

Re: loop a ChoiceField SelectMultiple form in the view as post

2015-07-10 Thread dk
i might simplify lol i didnt even understand. after i validate and clean a ChoiceField how do i us it? does it return a directory saying whats selected? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

loop a ChoiceField SelectMultiple form in the view as post

2015-07-09 Thread dk
i made a from lista = (("1","one"), ("2", "two")) pending = forms.ChoiceField(widget=forms.SelectMultiple, choices=lista) I do get it as post method. I do get true with is_valid() it renders properly in the website. but when I press the submit button. and I am printing the form.cleaned_data[