dDo not apply distinct for series of only static fields

This commit is contained in:
AlanCoding
2019-09-12 06:55:59 -04:00
committed by Ryan Petrello
parent 525fd889e9
commit b0722311e8
3 changed files with 50 additions and 22 deletions

View File

@@ -57,7 +57,7 @@ def test_empty_in(empty_value):
@pytest.mark.parametrize(u"valid_value", [u'foo', u'foo,'])
def test_valid_in(valid_value):
field_lookup = FieldLookupBackend()
value, new_lookup = field_lookup.value_to_python(JobTemplate, 'project__name__in', valid_value)
value, new_lookup, _ = field_lookup.value_to_python(JobTemplate, 'project__name__in', valid_value)
assert 'foo' in value