PageRenderTime 203ms CodeModel.GetById 140ms app.highlight 1ms RepoModel.GetById 60ms app.codeStats 0ms

/tests/regressiontests/fixtures_regress/fixtures/nk-inheritance2.xml

https://code.google.com/p/mango-py/
XML | 23 lines | 23 code | 0 blank | 0 comment | 0 complexity | ed14185faf46270b4fb3b94033b039de MD5 | raw file
 1<?xml version="1.0" encoding="utf-8"?>
 2<django-objects version="1.0">
 3    <object pk="2" model="fixtures_regress.parent">
 4        <field type="CharField" name="name">james</field>
 5    </object>
 6    <object pk="2" model="fixtures_regress.nkchild">
 7        <field type="CharField" name="data">banana</field>
 8    </object>
 9    <object pk="2" model="fixtures_regress.reftonkchild">
10        <field type="CharField" name="text">other text</field>
11        <field to="fixtures_regress.nkchild" name="nk_fk" rel="ManyToOneRel">
12            <natural>apple</natural>
13        </field>
14        <field to="fixtures_regress.nkchild" name="nk_m2m" rel="ManyToManyRel">
15            <object>
16                <natural>banana</natural>
17            </object>
18            <object>
19                <natural>apple</natural>
20            </object>
21        </field>
22    </object>
23</django-objects>