[web2py] Re: help with complex model creation

2011-11-08 Thread Cliff
db.define_table("company", Field("name", "string"), Field("guilds", db.guilds) ) Also, see IS_NOT_IN_DB and IS_IN_DB in the online book, http://www.web2py.com/book/default/chapter/07 On Nov 8, 1:18 pm, demetrio wrote: > Hi everyone, > > i'm starting a new project with web2py, and now i

[web2py] Re: help with complex model creation

2011-11-08 Thread Yannick
Hello, Im not sure if I fully understand your example but I believe that the relation: "Contruction and Company" is a many to many relationship so you just need to have a third table in the middle Construction <---> Reference <> Company and Reference is a third table that keep track of the com