Hi Chris,

you're not 100% correct with this statement:

        370   When ``use_natural_keys=True`` is specified, the primary key is
no longer
        371     provided in the serialized data of this object since it can be 
calculated
        372     during deserialization::

since in other old fixtures (that don't use use_natural_keys yet)
foreign keys can rely on objects pks from this fixture.
Or you might want to load objects by their pk for some purposes.
There might be other cases, these two are the most simple ones.

New option to tell if one should save pk or not... seems an overkill.
I've no idea if this is important and what decision to choose, but
anyway, I want to bring attention to these (rare?) cases.

On Sat, Jul 10, 2010 at 2:13 AM, SmileyChris <smileych...@gmail.com> wrote:
> On Jul 10, 1:47 am, Stijn Hoop <st...@sandcat.nl> wrote:
>> Hi,
>>
>> I am trying to use the 'natural keys' feature of django to make a sort
>> of "future proof" fixture loading possible.
>> [...]
>> With the patch linked below[1] I have successfully used dumpdata and
>> loaddata for a .json export of my tables. Of course I would like to
>> see something like this accepted, but this is of course a sort of
>> "feature request".
>
> It seems that my ticket in http://code.djangoproject.com/ticket/13252
> covers this. It's ready for review if anyone wants to give it a
> spin...
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Django developers" group.
> To post to this group, send email to django-develop...@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-developers+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-developers?hl=en.
>
>



-- 
Best regards, Yuri V. Baburov, ICQ# 99934676, Skype: yuri.baburov,
MSN: bu...@live.com

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-develop...@googlegroups.com.
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.

Reply via email to