Added unit test that tests #323 -- currently fails for MySQL and passes for PostgreSQL

git-svn-id: http://code.djangoproject.com/svn/django/trunk@506 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2005-08-15 15:43:59 +00:00
parent db127b7983
commit b5ed20434e
1 changed files with 11 additions and 0 deletions

View File

@ -132,6 +132,17 @@ datetime.datetime(2005, 7, 31, 12, 30)
>>> a8.save()
>>> articles.get_object(id__exact=8).pub_date
datetime.datetime(2005, 7, 31, 12, 30, 45)
>>> a8.id
8L
# Saving an object again shouldn't create a new object -- it just saves the old one.
>>> a8.save()
>>> a8.id
8L
>>> a8.headline = 'Updated article 8'
>>> a8.save()
>>> a8.id
8L
"""
from django.conf import settings