I see serial(fk) in your tables definition, but FK couldn't be serial, serial means generative id by sequence There is a little singularity in web2py - if you specify "id" as "reference ..." but don't specify it as primarykey=['id'] explicit then web2py treats it as serial id and ignores fk- constraint! so, if you want to have id (pk) as fk you have to: db.define_table(... Field('id', 'reference ...')... primarykey=['id'] )
On Sunday, February 28, 2016 at 9:20:58 PM UTC+3, prashant joshi wrote: > > how to conecting table?? > how to use refernce?? > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.