Fixed bug in get_next_by_FOO/get_previous_by_FOO methods that caused a database error when using those methods along with joining lookup contraints (i.e. "obj.get_next_by_pub_date(related__id__in=some_list)")
Fixed bug in get_next_by_FOO/get_previous_by_FOO methods that caused a database error when using those methods along with joining lookup contraints (i.e. "obj.get_next_by_pub_date(related__id__in=some_list)")


git-svn-id: 4f9f921b081c523744c7bf24d959a0db39629563@1550 bcc190cf-cafb-0310-a4f2-bffc1f526a37

Smarsh/django,dcramer/django-compositepks,alex/django-old,hugs/django,t11e/django,skevy/django,Instagram/django,disqus/django-old,django-nonrel/django-nonrel,Smarsh/django,jamespacileo/django-france,dcramer/django-compositepks,Smarsh/django,alex/django-old,bfirsh/django-old,Instagram/django,Instagram/django,bfirsh/django-old,dcramer/django-compositepks,hugs/django,Smarsh/django,django-nonrel/django-nonrel,alex/django-old,rawwell/django,mitsuhiko/django,rawwell/django,mitsuhiko/django,sam-tsai/django-old,sam-tsai/django-old,django-nonrel/django-nonrel,mitsuhiko/django,t11e/django,t11e/django,rawwell/django,skevy/django,sam-tsai/django-old,jamespacileo/django-france,disqus/django-old,bfirsh/django-old,disqus/django-old,sam-tsai/django-old,hugs/django,skevy/django,jamespacileo/django-france