Issue #1111: foreign key should also call get_queryset method

This commit is contained in:
Thomas Leonard 2021-02-10 10:05:45 +01:00
parent bb03306075
commit 9b2d04234e

View File

@ -1735,6 +1735,7 @@ def test_should_query_nullable_foreign_key():
}
}
"""
result = schema.execute(query_pet, variables={"name": "Stray dog"})
assert not result.errors
assert result.data["pet"] == {