Skip to content

Commit 5bdd354

Browse files
authored
Merge pull request #1632 from srinivasreddy/inequality
Add missing dunder method - __ne__ to the class GridFSProxy class
2 parents 0325a62 + dc8a64f commit 5bdd354

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mongoengine/fields.py

+3
Original file line numberDiff line numberDiff line change
@@ -1465,6 +1465,9 @@ def __eq__(self, other):
14651465
else:
14661466
return False
14671467

1468+
def __ne__(self, other):
1469+
return not self == other
1470+
14681471
@property
14691472
def fs(self):
14701473
if not self._fs:

0 commit comments

Comments
 (0)