Re: importing fixtures to postgres fails to set sequences correctly

2010-07-15 Thread Ramiro Morales
On Thu, Jul 15, 2010 at 6:05 PM, Justin Bronn wrote: >> > there seems to be a problem with django postgres backend, when >> > importing data from fixtures. Data are imported correctly, but the >> > sequences for primary keys are set incorrecly on models that have >> > generic.GenericRelation field

Re: importing fixtures to postgres fails to set sequences correctly

2010-07-15 Thread Justin Bronn
> > there seems to be a problem with django postgres backend, when > > importing data from fixtures. Data are imported correctly, but the > > sequences for primary keys are set incorrecly on models that have > > generic.GenericRelation field. See example: I have similar code, and was griping in #d

Re: importing fixtures to postgres fails to set sequences correctly

2010-07-15 Thread Ales Zoulek
Okay, so after a little bit more investigation on that topic, I've found out: 1] It's changed since changeset 13328 (http://code.djangoproject.com/changeset/13328) 2] Previous versions DID reset the sequence thru GenericRelation fields, but it did it on the right table so it worked. It just calle

Re: importing fixtures to postgres fails to set sequences correctly

2010-07-15 Thread Ales Zoulek
Okay, ticket created as #13941 I'll try to find out more and let you know in this thread. Thanks, A. -- Ales Zoulek +420 604 332 515 Jabber: ales.zou...@gmail.com -- On Thu, Jul 15, 2010 a

Re: importing fixtures to postgres fails to set sequences correctly

2010-07-15 Thread Russell Keith-Magee
On Thu, Jul 15, 2010 at 6:09 PM, Ales Zoulek wrote: > Hi guys, > > there seems to be a problem with django postgres backend, when > importing data from fixtures. Data are imported correctly, but the > sequences for primary keys are set incorrecly on models that have > generic.GenericRelation field

importing fixtures to postgres fails to set sequences correctly

2010-07-15 Thread Ales Zoulek
Hi guys, there seems to be a problem with django postgres backend, when importing data from fixtures. Data are imported correctly, but the sequences for primary keys are set incorrecly on models that have generic.GenericRelation field. See example: As a demo, those are just two models with generi