Merge pull request #1937 from bagerard/changelog

Bump version to 0.16.0 + update changelog
This commit is contained in:
Bastien Gérard
2018-11-05 09:38:58 +01:00
committed by GitHub
3 changed files with 36 additions and 8 deletions

View File

@@ -23,7 +23,7 @@ __all__ = (list(document.__all__) + list(fields.__all__) +
list(signals.__all__) + list(errors.__all__))
VERSION = (0, 15, 3)
VERSION = (0, 16, 0)
def get_version():

View File

@@ -134,7 +134,7 @@ class DeReference(object):
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)