-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Description
[Feature Request] Update to be compatible with pymongo >= 4.0.0
pymongo 4.0.0 brought a lot of changes, see https://pymongo.readthedocs.io/en/stable/changelog.html#changes-in-version-4-0
The latest flask-admin code (at time of writing) still uses deprecated functions, such as remove()
, insert()
and count()
.
Examples:
remove
: https://github.com/flask-admin/flask-admin/blob/3f9bda85b3a6040ee0327474fbf5e3515467b58a/flask_admin/contrib/pymongo/view.py#L365insert
: https://github.com/flask-admin/flask-admin/blob/3f9bda85b3a6040ee0327474fbf5e3515467b58a/flask_admin/contrib/pymongo/view.py#L315count
: https://github.com/flask-admin/flask-admin/blob/3f9bda85b3a6040ee0327474fbf5e3515467b58a/flask_admin/contrib/pymongo/view.py#L254
This means the latest flask-admin is incompatible with the latest pymongo.
Metadata
Metadata
Assignees
Labels
No labels