djangosnippets.org: Latest snippets tagged with 'deserializer'https://djangosnippets.org/tags/deserializer/2011-06-10T12:22:21.955708-05:00A slightly better YAML serializer
2011-06-10T12:22:21.955708-05:00wapcaplethttps://djangosnippets.org/snippets/2461/<p>I find Django's default YAML serializer output too repetitive, so I came up with this customized version that avoids outputting the model name for every single object, and makes the primary key into an index for the object's fields. This allows many simple model instances to be serialized as one-liners. …</p>
Freely redistributable