Item.bind for a foreign key relationship?

Ok IDK if this is the shortest way to do this, but I was able to accomplish this by leaving the ‘Items’ field in the WYSIWYG empty and instead setting the item values via the __init__ method of the form:
image

As mentioned here, if you assign the items property to a list of two-tuples, you can specify that the display-text is different from the actual value passed to the back-end.

1 Like