mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
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
This commit is contained in:
parent
ed6d7285dd
commit
a8a133cc6c
2 changed files with 4 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue