summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2010-09-11 00:20:35 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2010-09-11 00:20:35 +0000
commit9802a73e254de90230f8c3574ec46e6761691ba7 (patch)
treeeef7d61f7c500fd2f192e5d3a157cc34a07e3cdd /docs
parent506d559876b80a1d9fe86b94573952be6a0b3d6d (diff)
Better error message for calling get_next_by_* on unsaved models.
Patch from Marc Fargas. Fixed #7435. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13738 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/models/instances.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/ref/models/instances.txt b/docs/ref/models/instances.txt
index 8bb6cf9cc5..dfe4c747e8 100644
--- a/docs/ref/models/instances.txt
+++ b/docs/ref/models/instances.txt
@@ -568,3 +568,5 @@ described in :ref:`Field lookups <field-lookups>`.
Note that in the case of identical date values, these methods will use the ID
as a fallback check. This guarantees that no records are skipped or duplicated.
+
+That also means you cannot use those methods on unsaved objects.