From 424b3ca30806772021e888fe7214d9eb67c095bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastien=20G=C3=A9rard?= Date: Sat, 27 Oct 2018 23:01:14 +0200 Subject: [PATCH 1/2] update changelog with changes since 0.15.3 --- docs/changelog.rst | 42 +++++++++++++++++++++++++++++++------- mongoengine/dereference.py | 2 +- 2 files changed, 36 insertions(+), 8 deletions(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index 255d37431..222c6ea89 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -4,15 +4,43 @@ Changelog Development =========== -- QuerySet limit function behaviour: Passing 0 as parameter will return all the documents in the cursor #1611 -- bulk insert updates the ids of the input documents #1919 -- Fix an harmless bug related to GenericReferenceField where modifications in the generic-referenced document - were tracked in the parent (#1934) - (Fill this out as you fix issues and develop your features). ======= -Changes in 0.15.4 -================= -- Added `DateField` #513 +Changes in 0.16.0 +================= +- Various improvements to the doc +- Improvement to code quality +- POTENTIAL BREAKING CHANGES: + - EmbeddedDocumentField will no longer accept references to Document classes in its constructor #1661 + - Get rid of the `basecls` parameter from the DictField constructor (dead code) #1876 + - default value of ComplexDateTime is now None (and no longer the current datetime) #1368 +- Fix unhashable TypeError when referencing a Document with a compound key in an EmbeddedDocument #1685 +- Fix bug where an EmbeddedDocument with the same id as its parent would not be tracked for changes #1768 +- Fix the fact that bulk `insert()` was not setting primary keys of inserted documents instances #1919 +- Fix bug when referencing the abstract class in a ReferenceField #1920 +- Allow modification to the document made in pre_save_post_validation to be taken into account #1202 +- Replaced MongoDB 2.4 tests in CI by MongoDB 3.2 #1903 +- Fix side effects of using queryset.`no_dereference` on other documents #1677 +- Fix TypeError when using lazy django translation objects as translated choices #1879 +- Improve 2-3 codebase compatibility #1889 +- Fix the support for changing the default value of ComplexDateTime #1368 +- Improves error message in case an EmbeddedDocumentListField receives an EmbeddedDocument instance + instead of a list #1877 +- Fix the Decimal operator inc/dec #1517 #1320 +- Ignore killcursors queries in `query_counter` context manager #1869 +- Fix the fact that `query_counter` was modifying the initial profiling_level in case it was != 0 #1870 +- Repaired the `no_sub_classes` context manager + fix the fact that it was swallowing exceptions #1865 +- Fix index creation error that was swallowed by hasattr under python2 #1688 +- QuerySet limit function behaviour: Passing 0 as parameter will return all the documents in the cursor #1611 +- bulk insert updates the ids of the input documents instances #1919 +- Fix an harmless bug related to GenericReferenceField where modifications in the generic-referenced document + were tracked in the parent #1934 +- Improve validator of BinaryField #273 +- Implemented lazy regex compiling in Field classes to improve 'import mongoengine' performance #1806 +- Updated GridFSProxy.__str__ so that it would always print both the filename and grid_id #710 +- Add __repr__ to Q and QCombination #1843 +- fix bug in BaseList.__iter__ operator (was occuring when modifying a BaseList while iterating over it) #1676 +- Added field `DateField`#513 Changes in 0.15.3 ================= diff --git a/mongoengine/dereference.py b/mongoengine/dereference.py index 6c9932230..44266613a 100644 --- a/mongoengine/dereference.py +++ b/mongoengine/dereference.py @@ -134,7 +134,7 @@ def _fetch_objects(self, doc_type=None): object_map = {} for collection, dbrefs in self.reference_map.iteritems(): - # we use getattr instead of hasattr because as hasattr swallows any exception under python2 + # we use getattr instead of hasattr because hasattr swallows any exception under python2 # so it could hide nasty things without raising exceptions (cfr bug #1688)) ref_document_cls_exists = (getattr(collection, 'objects', None) is not None) From 17fa9a3b7707fa5071cc0a13c21e0cdc60d4c663 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastien=20G=C3=A9rard?= Date: Sat, 3 Nov 2018 21:48:12 +0100 Subject: [PATCH 2/2] bump version to 0.16.0 --- mongoengine/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mongoengine/__init__.py b/mongoengine/__init__.py index e6dc6b9d8..6e15d8b92 100644 --- a/mongoengine/__init__.py +++ b/mongoengine/__init__.py @@ -23,7 +23,7 @@ list(signals.__all__) + list(errors.__all__)) -VERSION = (0, 15, 3) +VERSION = (0, 16, 0) def get_version():