2007/11/23, Russell Keith-Magee <[EMAIL PROTECTED]>: > > On 11/23/07, Rudolph <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > My suggestion: > > It would be nice to use the django-admin.py with an extra option to > > dump certain data without primary keys. If you like the idea, I'll > > file a ticket (and maybe implement it at the upcoming Django sprint). > You're not the first to suggest the idea, and there is at least some > merit to the idea in principle. Feel free to adopt this as your pet > sprint issue. > > However, there is one big issue that requires resolution - how do > foreign key and m2m references get serialized if the primary keys for > the referred objects are not known? Any 'pk-less serializer' solution > will need to come up with a good way to address this problem before it > is seriously considered for inclusion into trunk.
How about structured markup? Both js, python and xml markup allow for objects to include other objects. It could be for example: ({name: 'bar', foo_set: ({field: 'baz'}, {field: 'ipsum'})}, {name: 'lorem'}) -- Patryk Zawadzki PLD Linux Distribution --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@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-developers?hl=en -~----------~----~----~----~------~----~------~--~---