1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #27985 -- Fixed query for __exact=value when get_prep_value() converts value to None.

Also fixed crash of .filter(field__transform=None).
This commit is contained in:
Sergey Fedoseev
2017-07-30 22:00:00 +05:00
committed by Tim Graham
parent 6155bc4a51
commit 58da81a5a3
4 changed files with 66 additions and 58 deletions

View File

@@ -19,6 +19,9 @@ class MultiColSource:
return self.__class__(relabels.get(self.alias, self.alias),
self.targets, self.sources, self.field)
def get_lookup(self, lookup):
return self.output_field.get_lookup(lookup)
def get_normalized_value(value, lhs):
from django.db.models import Model