Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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...
commit fb8a7702a022e5d85398838ab1a0a797519ac9cc 1 parent 82c89d0
Russell Keith-Magee authored November 06, 2008

Showing 1 changed file with 6 additions and 6 deletions. Show diff stats Hide diff stats

  1. 12  docs/howto/initial-data.txt
12  docs/howto/initial-data.txt
@@ -33,23 +33,23 @@ look like in JSON:
33 33
 
34 34
     [
35 35
       {
36  
-        "model": "myapp.person",  
  36
+        "model": "myapp.person",
37 37
         "pk": 1,
38 38
         "fields": {
39 39
           "first_name": "John",
40  
-          "last_name": "Lennon",
  40
+          "last_name": "Lennon"
41 41
         }
42 42
       },
43 43
       {
44  
-        "model": "myapp.person",  
  44
+        "model": "myapp.person",
45 45
         "pk": 2,
46 46
         "fields": {
47 47
           "first_name": "Paul",
48  
-          "last_name": "McCartney",
  48
+          "last_name": "McCartney"
49 49
         }
50 50
       },
51 51
     ]
52  
-    
  52
+
53 53
 And here's that same fixture as YAML:
54 54
 
55 55
 .. code-block:: none
@@ -64,7 +64,7 @@ And here's that same fixture as YAML:
64 64
       fields:
65 65
         first_name: Paul
66 66
         last_name: McCartney
67  
-        
  67
+
68 68
 You'll store this data in a ``fixtures`` directory inside you app.
69 69
 
70 70
 Loading data is easy: just call :djadmin:`manage.py loaddata fixturename

0 notes on commit fb8a770

Please sign in to comment.
Something went wrong with that request. Please try again.