flask - ValueError: too many values to unpack python with wtforms_extended_selectfield -


To include this code in my WTForm project, select optgroup my / Code> in forms, but I am getting the following error:

 for  for internal_val, group_items in internal_label: valueError: too many values ​​to unpack  

I copied and paste the code directly into my project and even used the example given to it:

  (('fruit', (('apple', 'Apple'), ('peach', 'aad' ('Peach', 'peach'), ('peach', 'peach'), ('pears',' pear ')), (' vegetables', ('cucumber', ' 

But this brings a different, yet similar error:

For pre> item1, item2 in field.choices: valueError: lots of values ​​to open

By looking at SO, I have to add things such as .iteritems () See in the section after In , but since it is a Tupal, it was none thanks for the help.


Comments

Popular posts from this blog

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -