I find dumpdata output in XML format quite strange for natural keys.
Each character in a key reference is wrapped in a <natural>.
Is this a bug to be reported or a feature?
*
>python manage.py dumpdata --format xml --natural appname
...
<object pk="1" model="appname.documenttype">
<field type="CharField" name="name">Doctype1</field>
...
<object pk="2" model="appname.document">
<field to="appname.documenttype" name="datatype"
rel="ManyToOneRel">
<natural>D</natural>
<natural>o</natural>
<natural>c</natural>
<natural>t</natural>
<natural>y</natural>
<natural>p</natural>
<natural>e</natural>
<natural>1</natural>
</field>
</object>
(Django SVN-12978, Python 2.6.5, Windows XP)
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.