The choices parameter to Selectfield expects a list of tuples, what
you've got is a list of strings.
Say you want to have to choices in the selectfield, it would go
something like this.
projects = [("choice1","Gen2"),("choice2","CRMC")]
I hpoe that clears things up for you ..
-- Torbjørn
I am trying to use a customer manipulator to build a search screen. One
of my
fields is a select field but I get an error to many values to unpack.
Any help would be greatly appreciated.
views.py
class SearchResults(forms.Manipulator):
def __init__(self):
projects = ['Gen2',
2 matches
Mail list logo