Skip to content

Commit

Permalink
Adding deserialization notes to Changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
honzakral committed Dec 26, 2017
1 parent 9574374 commit e10df98
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ Release compatible with elasticsearch 6.0, changes include:

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

5.4.0 (2017-12-06)
------------------
Expand Down
2 changes: 1 addition & 1 deletion docs/persistence.rst
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ If you want to create a model-like wrapper around your documents, use the
def add_comment(self, author, content):
self.comments.append(
{'author': author, 'content': content})
Comment(author=author, content=content, created_at=datetime.now()))
def save(self, ** kwargs):
self.created_at = datetime.now()
Expand Down

0 comments on commit e10df98

Please sign in to comment.