1
0
mirror of https://github.com/django/django.git synced 2024-12-24 10:05:46 +00:00

Fixed #14696, corrected some messed up syntax in the docs.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14566 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Alex Gaynor 2010-11-16 02:21:07 +00:00
parent f6363bc628
commit e69bc74351

View File

@ -61,11 +61,11 @@ Related objects reference
>>> b = Blog.objects.get(id=1) >>> b = Blog.objects.get(id=1)
>>> e = Entry( >>> e = Entry(
.... blog=b, ... blog=b,
.... headline='Hello', ... headline='Hello',
.... body_text='Hi', ... body_text='Hi',
.... pub_date=datetime.date(2005, 1, 1) ... pub_date=datetime.date(2005, 1, 1)
.... ) ... )
>>> e.save(force_insert=True) >>> e.save(force_insert=True)
Note that there's no need to specify the keyword argument of the model Note that there's no need to specify the keyword argument of the model