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

Submitted 3 years, 9 months ago
Ticket #30
Views 668
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 3 years, 10 months ago

Thanks issue has been resolved by doing this.

- moazamrana22 3 years, 10 months ago


Latest Blogs