doableware / djongo

Django and MongoDB database connector
https://www.djongomapper.com
GNU Affero General Public License v3.0
1.86k stars 351 forks source link

compatibility with pymongo 4.7.3 #697

Open davidmora123 opened 5 days ago

davidmora123 commented 5 days ago

I am using Django 3.0.4 and PyMongo 3.11.4, and everything works fine. However, since Atlas will be deprecating PyMongo 3.x versions in the coming months, I am trying to upgrade PyMongo to version 4.7.3. Unfortunately, I encountered an error because the remove method is apparently no longer available in PyMongo 4.x. I believe this method is used in Djongo. My question is about Djongo's compatibility with PyMongo 4.x versions.

Traceback

'Collection' object is not callable. If you meant to call the 'remove' method on a 'Collection' object it is failing because no such method exists.