#11929: manage.py dumpdata outputs YAML in unhelpful order
---------------------------+------------------------------------------------
 Reporter:  sampablokuper  |       Owner:  nobody    
   Status:  new            |   Milestone:            
Component:  Serialization  |     Version:  1.1       
 Keywords:                 |       Stage:  Unreviewed
Has_patch:  0              |  
---------------------------+------------------------------------------------
 The [http://docs.djangoproject.com/en/dev/howto/initial-data/ docs]
 suggest providing initial YAML data in the following format:

 {{{
 - model: myapp.person
   pk: 1
   fields:
     first_name: John
     last_name: Lennon
 }}}

 but the manage.py dumpdata outputs YAML in the following form:

 {{{
 -   fields: {first_name: John, last_name: Lennon}
     model: myapp.person
     pk: 1
 }}}

 The fact that this is flow rather than block style YAML is the subject of
 [http://code.djangoproject.com/ticket/11927 #11927], but there's another
 problem, which is that rather than putting the model and PK first (which
 is most human-readable), dumpdata outputs the fields first.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11929>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to