On Fri, May 29, 2009 at 4:57 PM, motard <stun...@gmail.com> wrote:
>
> This does indeed seem to have relation with the contents of what is
> being dumped to JSON.
>
> My experience is that simply dumping the data of a db will result in a
> file that will not be loadable "as is".
...
> So I'm not sure whether it makes much sense to follow the issue any
> further.

My experience, and the experience of the extensive test suite inside
Django, is that this isn't the case. Part of the Django test suite is
a set of round-trip tests - tests that check that a serialized object
can be deserialized, and serialized again to the same result.

That isn't to say that the serialization code is flawless - I would be
exceedingly foolish to claim it was. However, the existence of
round-trip tests highlights that you _should_ be able to do a
round-trip on fixtures, there are extensive demonstrations that it
_does_ work for many cases, and any failures in a round-trip is a bug
that should be reported and fixed.

Yours,
Russ Magee %-)

--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to