Re: loaddata without pk

2007-10-22 Thread Ariel Mauricio Nunez Gomez
>I think you're misunderstanding. There's no bug or issue here, at least >as far as you've explained it. Django's loaddata simply isn't designed >for data that isn't fully specified, which includes the pk value. >Instead, it's designed to handle the stuff written out by dumpdata. The issue I was d

Re: loaddata without pk

2007-10-22 Thread Malcolm Tredinnick
On Mon, 2007-10-22 at 07:03 -0500, Ariel Mauricio Nunez Gomez wrote: > Thanks for your comments Russell, > > I was refering to my own django install, I agree that it's not by any > chance a solution for the general problem. > > Do you think it would be adequate to report the issue in trac? I t

Re: loaddata without pk

2007-10-22 Thread Ariel Mauricio Nunez Gomez
Thanks for your comments Russell, I was refering to my own django install, I agree that it's not by any chance a solution for the general problem. Do you think it would be adequate to report the issue in trac? Regards, Ariel. --~--~-~--~~~---~--~~ You received th

Re: loaddata without pk

2007-10-21 Thread Russell Keith-Magee
On 10/20/07, Ariel Mauricio Nunez Gomez <[EMAIL PROTECTED]> wrote: > Thanks Malcolm, > > I just use it to load data for a single model that does not have any > relation to others. > > I generate the data.json with a script but I don't (know)/(want to set) the > pk keys in advance. > > Should I mod

Re: loaddata without pk

2007-10-20 Thread Ariel Mauricio Nunez Gomez
Thanks Malcolm, I just use it to load data for a single model that does not have any relation to others. I generate the data.json with a script but I don't (know)/(want to set) the pk keys in advance. Should I modify loaddata to look for the last pk at the start and fill the gaps? Ariel. On 10

Re: loaddata without pk

2007-10-20 Thread Malcolm Tredinnick
On Sat, 2007-10-20 at 10:15 -0500, Ariel Mauricio Nunez Gomez wrote: > Is it possible to use loaddata without a pk field and let database set > the proper value? No. The difficulty here is that you wouldn't ever be able to have relations between models, since they refer to each other using the pr

loaddata without pk

2007-10-20 Thread Ariel Mauricio Nunez Gomez
Is it possible to use loaddata without a pk field and let database set the proper value? Ariel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@g