> For now, I have a temp fix by going in to the data base and inserting
> records with just the id and it works fine now.
>
> I'll need to figure out a way to create the student record from at
> least the t2_person name when they do their registration.
I think what Massimo was saying is that if you call your field in the
"student" table something else other than "id" (think of it as a
reserved field name), then it will work as you expect.
i.e. instead of:
db.define_table("student",
SQLField("id",default=t2.person_id),
try this:
db.define_table("student",
SQLField("xxx_id",default=t2.person_id),
(where xxx is anything you want).
HTH,
JC
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---