[1.0.X] Fixed #9518 -- Corrected example JSON snippet in fixture documentation. Thanks to claude@2xlibre.net for the report.

Merge of [9355] from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9356 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Russell Keith-Magee 2008-11-06 10:48:20 +00:00
parent 603dcb89bb
commit 697f73f488
1 changed files with 6 additions and 6 deletions

View File

@ -33,23 +33,23 @@ look like in JSON:
[ [
{ {
"model": "myapp.person", "model": "myapp.person",
"pk": 1, "pk": 1,
"fields": { "fields": {
"first_name": "John", "first_name": "John",
"last_name": "Lennon", "last_name": "Lennon"
} }
}, },
{ {
"model": "myapp.person", "model": "myapp.person",
"pk": 2, "pk": 2,
"fields": { "fields": {
"first_name": "Paul", "first_name": "Paul",
"last_name": "McCartney", "last_name": "McCartney"
} }
}, },
] ]
And here's that same fixture as YAML: And here's that same fixture as YAML:
.. code-block:: none .. code-block:: none
@ -64,7 +64,7 @@ And here's that same fixture as YAML:
fields: fields:
first_name: Paul first_name: Paul
last_name: McCartney last_name: McCartney
You'll store this data in a ``fixtures`` directory inside you app. You'll store this data in a ``fixtures`` directory inside you app.
Loading data is easy: just call :djadmin:`manage.py loaddata fixturename Loading data is easy: just call :djadmin:`manage.py loaddata fixturename