Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[1.0.X] Fixed #9518 -- Corrected example JSON snippet in fixture docu…

…mentation. 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
  • Loading branch information...
commit 697f73f4889f9fd2739acd470b11e364cc14a3c4 1 parent 603dcb8
@freakboy3742 freakboy3742 authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 docs/howto/initial-data.txt
View
12 docs/howto/initial-data.txt
@@ -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
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.