Opened 15 years ago
Closed 15 years ago
#13178 closed (duplicate)
Make YAML serializer prefer block mode over inline mode
Reported by: | Patryk Zawadzki | Owned by: | nobody |
---|---|---|---|
Component: | Core (Serialization) | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Currently:
$ ./manage.py dumpdata invoicing.customer --format=yaml - fields: {address: bar, company: 1, contact: '', deleted_at: null, email: foo@bar.com, name: Foo, tax_id: ''} model: invoicing.customer pk: 1
After the change:
$ ./manage.py dumpdata invoicing.customer --format=yaml - fields: address: bar company: 1 contact: '' deleted_at: null email: foo@bar.com name: Foo tax_id: '' model: invoicing.customer pk: 1
It makes reading, understanding and editing of fixtures much easier (after all that's why we have YAML).
Attachments (1)
Change History (5)
by , 15 years ago
Attachment: | django-yaml-block-mode.patch added |
---|
comment:3 by , 15 years ago
comment:4 by , 15 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Proposed patch