Skip to content

Commit 06c3a32

Browse files
authored
release_notes: mention to_simple_dict (#1223)
1 parent b16231d commit 06c3a32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/release_notes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Breaking changes:
1616
If your codebase uses :py:class:`~pynamodb.attributes.BinaryAttribute` or :py:class:`~pynamodb.attributes.BinarySetAttribute`,
1717
go over the attribute declarations and mark them accordingly.
1818
* When using binary attributes, the return value of :meth:`~pynamodb.models.Model.serialize` will no longer be JSON-serializable
19-
since it will contain :code:`bytes` objects. Use :meth:`~pynamodb.models.Model.to_dynamodb_dict`
19+
since it will contain :code:`bytes` objects. Use :meth:`~pynamodb.attributes.AttributeContainer.to_dynamodb_dict` and :meth:`~pynamodb.attributes.AttributeContainer.to_simple_dict` for JSON-serializable mappings.
2020
for a safe JSON-serializable representation.
2121

2222
* Python 3.6 is no longer supported.

0 commit comments

Comments
 (0)