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["pending"]
its just empty =(
so I try to do
for I in form.cleaned_data["pending"]
print i
and its also empty
should I get a list out of the multiselect form?
I just want to print all the lines that are in there. even if they are not selected. I want to retrieve the 1 and 2 in the view.
might be a missing part that I am not doing correct.