We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f0b371 commit 4ae1d8fCopy full SHA for 4ae1d8f
1 file changed
tests/fields/fields.py
@@ -3609,6 +3609,11 @@ def test_delete(self):
3609
self.assertEqual(number, 2)
3610
3611
def test_only_populates_missing_listfield(self):
3612
+ """
3613
+ Tests that getting a query result filtered by only() doesn't populate
3614
+ missing list fields with an empty list.
3615
3616
+
3617
class A(Document):
3618
my_list = ListField(IntField())
3619
0 commit comments