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.

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,

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

One to Many insert into Postgres

2008-12-11 Thread Ana
Hello, I am converting from PHP to Django. In my Postgres database I have three tables: models.py code: class Publication(models.Model): pubtitle = models.TextField() def __unicode__(self): return self.pubtitle class Pathology(models.Model): pathology =