Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed #9518 -- Corrected example JSON snippet in fixture documentatio…
…n. Thanks to claude@2xlibre.net for the report.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@9355 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
freakboy3742 committed Nov 6, 2008
1 parent 82c89d0 commit fb8a770
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/howto/initial-data.txt
Expand Up @@ -33,23 +33,23 @@ look like in JSON:

[
{
"model": "myapp.person",
"model": "myapp.person",
"pk": 1,
"fields": {
"first_name": "John",
"last_name": "Lennon",
"last_name": "Lennon"
}
},
{
"model": "myapp.person",
"model": "myapp.person",
"pk": 2,
"fields": {
"first_name": "Paul",
"last_name": "McCartney",
"last_name": "McCartney"
}
},
]

And here's that same fixture as YAML:

.. code-block:: none
Expand All @@ -64,7 +64,7 @@ And here's that same fixture as YAML:
fields:
first_name: Paul
last_name: McCartney

You'll store this data in a ``fixtures`` directory inside you app.

Loading data is easy: just call :djadmin:`manage.py loaddata fixturename
Expand Down

0 comments on commit fb8a770

Please sign in to comment.