[1.10.x] Fixed #26983 -- Fixed isnull filtering on ForeignKey with to_field

Thanks weidwonder for the report.
Backport of 272eccf7ff from master.
This commit is contained in:
Claude Paroz 2016-08-02 17:27:45 +02:00
parent dcebeea270
commit 6757c94662
3 changed files with 17 additions and 1 deletions

View file

@ -26,3 +26,6 @@ Bugfixes
* Fixed a crash if ``request.META['CONTENT_LENGTH']`` is an empty string
(:ticket:`27005`).
* Fixed the ``isnull`` lookup on a ``ForeignKey`` with its ``to_field``
pointing to a ``CharField`` (:ticket:`26983`).