Skip to content

Commit 364dc9d

Browse files
authored
Merge pull request #1937 from bagerard/changelog
Bump version to 0.16.0 + update changelog
2 parents 23324f0 + 17fa9a3 commit 364dc9d

File tree

3 files changed

+37
-9
lines changed

3 files changed

+37
-9
lines changed

docs/changelog.rst

Lines changed: 35 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,43 @@ Changelog
44

55
Development
66
===========
7-
- QuerySet limit function behaviour: Passing 0 as parameter will return all the documents in the cursor #1611
8-
- bulk insert updates the ids of the input documents #1919
9-
- Fix an harmless bug related to GenericReferenceField where modifications in the generic-referenced document
10-
were tracked in the parent (#1934)
117
- (Fill this out as you fix issues and develop your features).
128
=======
13-
Changes in 0.15.4
14-
=================
15-
- Added `DateField` #513
9+
Changes in 0.16.0
10+
=================
11+
- Various improvements to the doc
12+
- Improvement to code quality
13+
- POTENTIAL BREAKING CHANGES:
14+
- EmbeddedDocumentField will no longer accept references to Document classes in its constructor #1661
15+
- Get rid of the `basecls` parameter from the DictField constructor (dead code) #1876
16+
- default value of ComplexDateTime is now None (and no longer the current datetime) #1368
17+
- Fix unhashable TypeError when referencing a Document with a compound key in an EmbeddedDocument #1685
18+
- Fix bug where an EmbeddedDocument with the same id as its parent would not be tracked for changes #1768
19+
- Fix the fact that bulk `insert()` was not setting primary keys of inserted documents instances #1919
20+
- Fix bug when referencing the abstract class in a ReferenceField #1920
21+
- Allow modification to the document made in pre_save_post_validation to be taken into account #1202
22+
- Replaced MongoDB 2.4 tests in CI by MongoDB 3.2 #1903
23+
- Fix side effects of using queryset.`no_dereference` on other documents #1677
24+
- Fix TypeError when using lazy django translation objects as translated choices #1879
25+
- Improve 2-3 codebase compatibility #1889
26+
- Fix the support for changing the default value of ComplexDateTime #1368
27+
- Improves error message in case an EmbeddedDocumentListField receives an EmbeddedDocument instance
28+
instead of a list #1877
29+
- Fix the Decimal operator inc/dec #1517 #1320
30+
- Ignore killcursors queries in `query_counter` context manager #1869
31+
- Fix the fact that `query_counter` was modifying the initial profiling_level in case it was != 0 #1870
32+
- Repaired the `no_sub_classes` context manager + fix the fact that it was swallowing exceptions #1865
33+
- Fix index creation error that was swallowed by hasattr under python2 #1688
34+
- QuerySet limit function behaviour: Passing 0 as parameter will return all the documents in the cursor #1611
35+
- bulk insert updates the ids of the input documents instances #1919
36+
- Fix an harmless bug related to GenericReferenceField where modifications in the generic-referenced document
37+
were tracked in the parent #1934
38+
- Improve validator of BinaryField #273
39+
- Implemented lazy regex compiling in Field classes to improve 'import mongoengine' performance #1806
40+
- Updated GridFSProxy.__str__ so that it would always print both the filename and grid_id #710
41+
- Add __repr__ to Q and QCombination #1843
42+
- fix bug in BaseList.__iter__ operator (was occuring when modifying a BaseList while iterating over it) #1676
43+
- Added field `DateField`#513
1644

1745
Changes in 0.15.3
1846
=================

mongoengine/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
list(signals.__all__) + list(errors.__all__))
2424

2525

26-
VERSION = (0, 15, 3)
26+
VERSION = (0, 16, 0)
2727

2828

2929
def get_version():

mongoengine/dereference.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def _fetch_objects(self, doc_type=None):
134134
object_map = {}
135135
for collection, dbrefs in self.reference_map.iteritems():
136136

137-
# we use getattr instead of hasattr because as hasattr swallows any exception under python2
137+
# we use getattr instead of hasattr because hasattr swallows any exception under python2
138138
# so it could hide nasty things without raising exceptions (cfr bug #1688))
139139
ref_document_cls_exists = (getattr(collection, 'objects', None) is not None)
140140

0 commit comments

Comments
 (0)