the form is created by the admin app, no validation error, just i get this 
error for any insert with relation.

i dont understand.

On Thursday, March 21, 2013 10:06:54 PM UTC+3:30, Alan Etkin wrote:
>
> <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