diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2006-06-20 02:17:14 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2006-06-20 02:17:14 +0000 |
| commit | a8a133cc6cf4c3a5a2deb9d8989ba09b09ace736 (patch) | |
| tree | 9a8b98be35c389c0e49c79890a0f78f3d417f07d /tests | |
| parent | ed6d7285dd4c5fa61fd6aea07fb3d372feb3fa6b (diff) | |
Fixed #1857 -- Fixed get_previous_by_FIELD and get_next_by_FIELD to work
properly with keyword arguments. Patch from tom@jerakeen.org.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3157 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/modeltests/lookup/models.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/modeltests/lookup/models.py b/tests/modeltests/lookup/models.py index 9ac53b1677..fc12c99f60 100644 --- a/tests/modeltests/lookup/models.py +++ b/tests/modeltests/lookup/models.py @@ -128,6 +128,8 @@ True <Article: Article 2> >>> a2.get_next_by_pub_date() <Article: Article 3> +>>> a2.get_next_by_pub_date( headline__endswith = '6' ) +<Article: Article 6> >>> a3.get_next_by_pub_date() <Article: Article 7> >>> a4.get_next_by_pub_date() |
