Changeset 5915
- Timestamp:
- 08/17/07 09:02:40 (1 year ago)
- Files:
-
- django/trunk/tests/modeltests/fixtures/models.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/tests/modeltests/fixtures/models.py
r5898 r5915 74 74 75 75 # Dump the current contents of the database as a JSON fixture 76 >>> printmanagement.call_command('dumpdata', 'fixtures', format='json')76 >>> management.call_command('dumpdata', 'fixtures', format='json') 77 77 [{"pk": "3", "model": "fixtures.article", "fields": {"headline": "Time to reform copyright", "pub_date": "2006-06-16 13:00:00"}}, {"pk": "2", "model": "fixtures.article", "fields": {"headline": "Poker has no place on ESPN", "pub_date": "2006-06-16 12:00:00"}}, {"pk": "1", "model": "fixtures.article", "fields": {"headline": "Python program becomes self aware", "pub_date": "2006-06-16 11:00:00"}}] 78 78 """}
