summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2006-12-17 14:17:11 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2006-12-17 14:17:11 +0000
commit94edd4b81fdbba1b15f86e9327d24c80c9df7e50 (patch)
treeeaac06fdff26ee1ff306b6d9e5e5c851fff47908 /docs
parenta0ef6f691551b3f1bf5db6535488c36e01da9819 (diff)
Fixed #3118 -- Fixed reversed logic in DBAPI regarding handling of empty PKs on save(). Thanks, Makoto Tsuyuki.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4221 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/db-api.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/db-api.txt b/docs/db-api.txt
index 2f0c8b0589..13a32bd0b8 100644
--- a/docs/db-api.txt
+++ b/docs/db-api.txt
@@ -143,9 +143,9 @@ or ``UPDATE`` SQL statements. Specifically, when you call ``save()``, Django
follows this algorithm:
* If the object's primary key attribute is set to a value that evaluates to
- ``False`` (such as ``None`` or the empty string), Django executes a
- ``SELECT`` query to determine whether a record with the given primary key
- already exists.
+ ``True`` (i.e., a value other than ``None`` or the empty string), Django
+ executes a ``SELECT`` query to determine whether a record with the given
+ primary key already exists.
* If the record with the given primary key does already exist, Django
executes an ``UPDATE`` query.
* If the object's primary key attribute is *not* set, or if it's set but a