Skip to content

Commit e10df98

Browse files
committed
Adding deserialization notes to Changelog
1 parent 9574374 commit e10df98

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Changelog.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ Release compatible with elasticsearch 6.0, changes include:
2424

2525
* methods on ``connections`` singleton are now exposed on the ``connections``
2626
module directly.
27+
* field values are now only deserialized when coming from elasticsearch (via
28+
``from_es`` method) and not when assigning values in python (either by
29+
direct assignment or in ``__init__``).
2730

2831
5.4.0 (2017-12-06)
2932
------------------

docs/persistence.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ If you want to create a model-like wrapper around your documents, use the
150150
151151
def add_comment(self, author, content):
152152
self.comments.append(
153-
{'author': author, 'content': content})
153+
Comment(author=author, content=content, created_at=datetime.now()))
154154
155155
def save(self, ** kwargs):
156156
self.created_at = datetime.now()

0 commit comments

Comments
 (0)