[web2py] Re: Simple loan system for library

2014-05-24 Thread john smith
I'm very new to this, so I'm not sure if I understand the 'foreign key' concept, but from what I understand Field('copies', db.copies), would be my foreign key reference. Now that i thought about it, it should probably go the other way since I want one book to have many copies. But I would

[web2py] Re: Simple loan system for library

2014-05-23 Thread Andrew W
Hi John, One step at a time, looking at your database model, how does 'copies' relate to a book ? You are missing a foreign key reference. Are there any other attributes that a copy may have ? On Saturday, May 24, 2014 7:30:35 AM UTC+10, john smith wrote: I'm trying to create library