How to resolve Mongokit TypeError: __init__() got an unexpected keyword argument 'collection' error

73 Views Asked by At

My code looks like:

class DocumentLog(MongokitBaseModel):
    __collection__ = 'document_log'
    __database__ = MASTER_DB


db = connection.DocumentLog(dData)

How to resolve Mongokit TypeError: init() got an unexpected keyword argument 'collection' error

0

There are 0 best solutions below