couple years ago, I also switched to PyMODM due to this issue. could you let me know, which version of mongoengine that you used ?