Minor fix to get the fixure model test to pass in the new management framework.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5915 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
fc041a3c1c
commit
55c0b35acf
|
@ -73,7 +73,7 @@ Multiple fixtures named 'fixture2' in '...fixtures'. Aborting.
|
|||
[<Article: Time to reform copyright>, <Article: Poker has no place on ESPN>, <Article: Python program becomes self aware>]
|
||||
|
||||
# Dump the current contents of the database as a JSON fixture
|
||||
>>> print management.call_command('dumpdata', 'fixtures', format='json')
|
||||
>>> management.call_command('dumpdata', 'fixtures', format='json')
|
||||
[{"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"}}]
|
||||
"""}
|
||||
|
||||
|
|
Loading…
Reference in New Issue