diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2005-11-10 05:36:41 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2005-11-10 05:36:41 +0000 |
| commit | e3e37ed1202f58e4d5e172ecd15af5ab8eda3492 (patch) | |
| tree | 9c57b12cb260c903f7d2142be06e20a9950b82dc /docs/db-api.txt | |
| parent | 28bce49e59a4dac2ef0fdb14af4ff5b09c5efc95 (diff) | |
Fixed #724 -- Ensured get_next_by_FOO() and get_previous_by_FOO() methods don't skip or duplicate any records in the case of duplicate values. Thanks for reporting the bug, mattycakes@gmail.com
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1155 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/db-api.txt')
| -rw-r--r-- | docs/db-api.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/db-api.txt b/docs/db-api.txt index 01aacf49b1..30dece6482 100644 --- a/docs/db-api.txt +++ b/docs/db-api.txt @@ -515,6 +515,12 @@ previous object with respect to the date field, raising the appropriate Both methods accept optional keyword arguments, which should be in the format described in "Field lookups" above. +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. +For a full example, see the `lookup API sample model_`. + +.. _lookup API sample model: http://www.djangoproject.com/documentation/models/lookup/ + get_FOO_filename() ------------------ |
