Changes between Initial Version and Version 1 of Ticket #28748, comment 11
- Timestamp:
- Jan 26, 2018, 8:19:29 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #28748, comment 11
initial v1 1 1 Thank you for the detailed bug report! I added the check for the {{{Promise}}} type as you suggested. 2 2 3 It made me realize that {{{bytes}}} should probably be allowed in the choices as well. 3 ~~It made me realize that {{{bytes}}} should probably be allowed in the choices as well.~~ 4 4 5 5 [https://github.com/django/django/pull/9617 PR] 6 7 Edit: choices should not allow `bytes`. `CharField.to_python()` calls `str()` on the value. Providing `b'foo'` would result in `"b'foo'"` stored in the database. Thanks to Simon Charette for the correction.