Changes between Initial Version and Version 1 of Ticket #33333, comment 4


Ignore:
Timestamp:
Nov 30, 2021, 2:21:19 PM (3 years ago)
Author:
Simon Charette

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #33333, comment 4

    initial v1  
    1 My first instinct would be to have `BinaryField.from_db_value` use `force_bytes` to store `bytes` instead of `memoryview` in `_state` or introduce a hook to allow `Field` subclass to define a hook using during serialization and have the model machinery
     1My first instinct would be to have `BinaryField.from_db_value` use `force_bytes` to store `bytes` instead of `memoryview` in `_state` or introduce a hook to allow `Field` subclass to define a hook using during serialization and have `Model.__getstate__` call it.
    22
    33To me that's more of a long standing issue with `BinaryField` and less of a regression cause by 3cf80d3fcf7446afdde16a2be515c423f720e54d.
Back to Top