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

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -