Django

Code

Changeset 9355

Show
Ignore:
Timestamp:
11/06/08 04:24:24 (2 months ago)
Author:
russellm
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/howto/initial-data.txt

    r8657 r9355  
    3434    [ 
    3535      { 
    36         "model": "myapp.person",   
     36        "model": "myapp.person", 
    3737        "pk": 1, 
    3838        "fields": { 
    3939          "first_name": "John", 
    40           "last_name": "Lennon", 
     40          "last_name": "Lennon" 
    4141        } 
    4242      }, 
    4343      { 
    44         "model": "myapp.person",   
     44        "model": "myapp.person", 
    4545        "pk": 2, 
    4646        "fields": { 
    4747          "first_name": "Paul", 
    48           "last_name": "McCartney", 
     48          "last_name": "McCartney" 
    4949        } 
    5050      }, 
    5151    ] 
    52      
     52 
    5353And here's that same fixture as YAML: 
    5454 
     
    6565        first_name: Paul 
    6666        last_name: McCartney 
    67          
     67 
    6868You'll store this data in a ``fixtures`` directory inside you app. 
    6969