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/20/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
>
>
> 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
> primary key values (almost always).
>
> Regards,
> Malcolm
>
> --
> The early bird may get the worm, but the second mouse gets the cheese.
> http://www.pointy-stick.com/blog/
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to