1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

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
This commit is contained in:
Malcolm Tredinnick
2010-09-11 00:20:35 +00:00
parent 506d559876
commit 9802a73e25
2 changed files with 4 additions and 0 deletions

View File

@@ -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.