Changes between Initial Version and Version 1 of Ticket #28748, comment 11


Ignore:
Timestamp:
Jan 26, 2018, 8:19:29 PM (7 years ago)
Author:
François Freitag

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28748, comment 11

    initial v1  
    11Thank you for the detailed bug report! I added the check for the {{{Promise}}} type as you suggested.
    22
    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.~~
    44
    55[https://github.com/django/django/pull/9617 PR]
     6
     7Edit: 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.
Back to Top