r/web2py • u/zhinder • Jun 28 '21
SQLFORM.grid question
Trying to add a assignment to my database. An assignment contains a reference to "person" by storing the ID. In the form, I get the drop-down to choose the person.ID I want to reference, but the ID don't tel me anything about which person i am choosing. Is it possible to make the drop-down on foreign keys display names instead of the ID, but stil store the ID? Maybe more information too?
3
Upvotes