Fix for #214
This commit is contained in:
@ -68,6 +68,13 @@ async def test_is_null():
|
||||
assert tolkien.books[0].year is None
|
||||
assert tolkien.books[0].title == "The Hobbit"
|
||||
|
||||
tolkien = await Author.objects.select_related("books").paginate(1, 10).get(
|
||||
books__year__isnull=True
|
||||
)
|
||||
assert len(tolkien.books) == 1
|
||||
assert tolkien.books[0].year is None
|
||||
assert tolkien.books[0].title == "The Hobbit"
|
||||
|
||||
tolkien = await Author.objects.select_related("books").get(
|
||||
books__year__isnull=False
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user