MongoEngine/mongoengine #1217: Curry **kwargs through to_mongo on fields
This commit is contained in:
committed by
Bryan Bennett
parent
decd70eb23
commit
6c9e1799c7
@@ -3380,7 +3380,7 @@ class FieldTest(unittest.TestCase):
|
||||
def __init__(self, **kwargs):
|
||||
super(EnumField, self).__init__(**kwargs)
|
||||
|
||||
def to_mongo(self, value):
|
||||
def to_mongo(self, value, **kwargs):
|
||||
return value
|
||||
|
||||
def to_python(self, value):
|
||||
|
||||
Reference in New Issue
Block a user