Skip to content

Commit

Permalink
Revert "fix-MongoEngine#1105: StrictDict & SemiStrictDict are shadowe…
Browse files Browse the repository at this point in the history
…d at init time"

This reverts commit 6355c40.

That commit breaks equality after json usage (or something along that
lines)
  • Loading branch information
alon committed Oct 25, 2015
1 parent 74c5b5d commit 61f94dc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ Changes in 0.10.1 - DEV
- Fix ignored chained options #842
- Document save's save_condition error raises `SaveConditionError` exception #1070
- Fix Document.reload for DynamicDocument. #1050
- StrictDict & SemiStrictDict are shadowed at init time. #1105
- Remove test dependencies (nose and rednose) from install dependencies list. #1079
- Recursively build query when using elemMatch operator. #1130

Expand Down
1 change: 1 addition & 0 deletions mongoengine/base/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ def __init__(self, *args, **values):
self._data = SemiStrictDict.create(
allowed_keys=self._fields_ordered)()

self._data = {}
self._dynamic_fields = SON()

# Assign default values to instance
Expand Down

0 comments on commit 61f94dc

Please sign in to comment.