Re: One to Many insert into Postgres

2008-12-13 Thread tofergus
On 12.12-08:28, Ana wrote: [ ... ] > Thank you both for the suggestions. There is a problem with the > sequence number in the primary keys. When I created a new table > without data the insert worked fine.I will try to recreate the > sequences and hope I don't have to re-enter the data. you

Re: One to Many insert into Postgres

2008-12-12 Thread Ana
Thank you both for the suggestions. There is a problem with the sequence number in the primary keys. When I created a new table without data the insert worked fine.I will try to recreate the sequences and hope I don't have to re-enter the data. Thanks, Anna On Dec 12, 3:26 am, tofer...@gm

Re: One to Many insert into Postgres

2008-12-12 Thread tofergus
On 11.12-07:45, Ana wrote: [ ... ] > I am converting from PHP to Django. In my Postgres database I have > three tables: [ ... ] > duplicate key value violates unique constraint > "fsafety_pathpubcombo_pkey" > > Can anyone please help? This is the first python code I've written. i would guess t

Re: One to Many insert into Postgres

2008-12-11 Thread Karen Tracey
On Thu, Dec 11, 2008 at 10:45 AM, Ana <[EMAIL PROTECTED]> wrote: > > [snip] > My admin form - publication shows more than one pathology on the edit > page, which means the above code works up to this point. It also > gives me 3 empty fields that allows me to continue to add pathologies > to the p