Djongo NotImplementedError: Database objects do not implement truth value testing or bool()

Python 3.10.2
Django==4.1.1
PyMongo==4.2.0
djongo==1.3.6
while running migrate
NotImplementedError: Database objects do not implement truth value testing or bool(). Please compare with None instead: database is not None
Reinstall pymongo pymongo==3.12.3 resolved this problem.

I’m using mongodb 6.0.1 Community,maybe should be wating for next version of djongo