diff --git a/.travis.yml b/.travis.yml index c5b37b6f..05ce782d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,10 +16,10 @@ language: python dist: xenial python: -- 3.5 - 3.6 - 3.7 - 3.8 +- 3.9 - pypy3 env: diff --git a/README.rst b/README.rst index aca8edc0..7b15c4e3 100644 --- a/README.rst +++ b/README.rst @@ -16,6 +16,9 @@ MongoEngine :target: https://landscape.io/github/MongoEngine/mongoengine/master :alt: Code Health +.. image:: https://img.shields.io/badge/code%20style-black-000000.svg + :target: https://github.com/ambv/black + About ===== MongoEngine is a Python Object-Document Mapper for working with MongoDB. diff --git a/docs/changelog.rst b/docs/changelog.rst index 088aeba8..f8c59e74 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -6,11 +6,12 @@ Changelog Development =========== - (Fill this out as you fix issues and develop your features). -- Bug fix in DynamicDocument which isn not parsing known fields in constructor like Document do #2412 +- Bug fix in DynamicDocument which is not parsing known fields in constructor like Document do #2412 - When using pymongo >= 3.7, make use of Collection.count_documents instead of Collection.count and Cursor.count that got deprecated in pymongo >= 3.7. This should have a negative impact on performance of count see Issue #2219 - Fix a bug that made the queryset drop the read_preference after clone(). +- Remove Py3.5 from CI as it reached EOL and add Python 3.9 - Fix the behavior of Doc.objects.limit(0) which should return all documents (similar to mongodb) #2311 - Bug fix in ListField when updating the first item, it was saving the whole list, instead of just replacing the first item (as it's usually done) #2392 diff --git a/docs/guide/connecting.rst b/docs/guide/connecting.rst index ac2146a6..03d6ed5c 100644 --- a/docs/guide/connecting.rst +++ b/docs/guide/connecting.rst @@ -31,6 +31,8 @@ the :attr:`host` to connect('project1', host='mongodb://localhost/database_name') +.. note:: URI containing SRV records (e.g mongodb+srv://server.example.com/) can be used as well as the :attr:`host` + .. note:: Database, username and password from URI string overrides corresponding parameters in :func:`~mongoengine.connect`: ::