Django

Code

Changeset 5915

Show
Ignore:
Timestamp:
08/17/07 09:02:40 (1 year ago)
Author:
russellm
Message:

Minor fix to get the fixure model test to pass in the new management framework.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/tests/modeltests/fixtures/models.py

    r5898 r5915  
    7474 
    7575# Dump the current contents of the database as a JSON fixture 
    76 >>> print management.call_command('dumpdata', 'fixtures', format='json') 
     76>>> management.call_command('dumpdata', 'fixtures', format='json') 
    7777[{"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"}}] 
    7878"""}