diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2017-05-01 05:47:49 -0700 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-05-01 08:47:49 -0400 |
| commit | b39aabc6c6b84cbe4005f3fdf3b9c0c4307afc76 (patch) | |
| tree | 2855812ffd50eefde486466e1857fa36ecfeb517 /docs/internals/contributing/writing-code/javascript.txt | |
| parent | 9ae4362becbde31dc9cc31ae0b1db969e7007431 (diff) | |
Refs #27795 -- Reworked get_or_create test erroneously mixing bytes and str.
As CharField.to_python() now always calls str(), assigning bytes to a
CharField is no longer correct usage. Doing so results in a warning:
django/db/models/fields/__init__.py:1061: BytesWarning: str() on a bytes instance
Use a unique constraint violation to trigger the database error instead.
Warning introduced in 301de774c21d055e9e5a7073e5bffdb52bc71079.
Diffstat (limited to 'docs/internals/contributing/writing-code/javascript.txt')
0 files changed, 0 insertions, 0 deletions
