Skip to content

Commit

Permalink
release_notes: mention to_simple_dict (#1223)
Browse files Browse the repository at this point in the history
  • Loading branch information
andercarrera authored Jan 31, 2024
1 parent b16231d commit 06c3a32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/release_notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Breaking changes:
If your codebase uses :py:class:`~pynamodb.attributes.BinaryAttribute` or :py:class:`~pynamodb.attributes.BinarySetAttribute`,
go over the attribute declarations and mark them accordingly.
* When using binary attributes, the return value of :meth:`~pynamodb.models.Model.serialize` will no longer be JSON-serializable
since it will contain :code:`bytes` objects. Use :meth:`~pynamodb.models.Model.to_dynamodb_dict`
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.
for a safe JSON-serializable representation.

* Python 3.6 is no longer supported.
Expand Down

0 comments on commit 06c3a32

Please sign in to comment.