too many values to unpack (expected 2) error for ChoiceField in forms.py

Submitted 5 years ago
Ticket #30
Views 816
Language/Framework Django
Priority Urgent
Status Closed

    Status_choices=(('True'),('False'))
    Status = forms.ChoiceField(widget=forms.Select, choices=Status_choices)

in forms.py

Submitted on Jul 01, 20
add a comment

1 Answer

Verified

Hi, again its me. its hard to understand your issue. So i would suggest , please provide more details when you submit the issue. So all techions will able to jump into the issue and help you. Of course we will get some points as well :P. Ok coming to that issue, i dont undestand what the issue, what are you expecting here. from your error, it self, you could able to find the issue, try this Status_choices=(('T','True'),('F','False')) Status = forms.ChoiceField(widget=forms.Select, choices=Status_choices)

Submitted 5 years ago

Thanks issue has been resolved by doing this.

- moazamrana22 5 years ago


Latest Blogs