diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2005-08-15 15:43:59 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2005-08-15 15:43:59 +0000 |
| commit | b5ed20434e5faa739f7bc753319986dd9dfac7f7 (patch) | |
| tree | 57b14eefe7bf3cc317325fc79cf6e5242e4ce43a | |
| parent | db127b79835cb971639e0185073e5d7756fb9d9a (diff) | |
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
| -rw-r--r-- | tests/testapp/models/basic.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/testapp/models/basic.py b/tests/testapp/models/basic.py index 3668820c94..c51ceccb9d 100644 --- a/tests/testapp/models/basic.py +++ b/tests/testapp/models/basic.py @@ -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 |
