summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2006-08-10 03:55:03 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2006-08-10 03:55:03 +0000
commita6a402a7db45ea7d2bb8521b989de573c4f72fee (patch)
tree61e1257baf08d3bd5105cefaebe276e41f9e269c /tests
parentcba451c94035ebf6174a283d5b1442dd4b995953 (diff)
Fixed #2512 -- Fixed SQL error when saving existing empty models.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3548 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests')
-rw-r--r--tests/modeltests/empty/models.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/modeltests/empty/models.py b/tests/modeltests/empty/models.py
index c50878398d..0f5a0b870f 100644
--- a/tests/modeltests/empty/models.py
+++ b/tests/modeltests/empty/models.py
@@ -20,5 +20,7 @@ API_TESTS = """
2
>>> m.id is not None
True
+>>> existing = Empty(m.id)
+>>> existing.save()
"""