>
> <class 'psycopg2.IntegrityError'> insert or update on table "testing" 
> violates foreign key constraint "sea_inquery_origin_fkey" DETAIL: Key 
> (origin)=(0) is not present in table "countries". 


Are you setting 0 value for the foreign key?

If you are in the admin app, the insert form should not pass validation 
unless you specify an actual db record as reference.

-- 

--- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to