Given a model with the field:
logs = fields.ForeignField('nodelog', list=True, backref='logged')
The in operator doesn't return the correct value if None is in the list.
node.logs # => [<NodeLog...>, None]
None in node.logs # => False
The problem seems to lie in the __contains__ implementation of ForeignLists.
Given a model with the field:
The
inoperator doesn't return the correct value ifNoneis in the list.The problem seems to lie in the
__contains__implementation of ForeignLists.