#29086: Bytestrings on CharFields getting saved as "b'data'"
-------------------------------------+-------------------------------------
               Reporter:  Collin     |          Owner:  nobody
  Anderson                           |
                   Type:  Bug        |         Status:  new
              Component:  Database   |        Version:  2.0
  layer (models, ORM)                |
               Severity:  Release    |       Keywords:
  blocker                            |
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 Django 1.11 behavior (python 3):
 {{{
 o = MyModel()
 o.myfield = b'123'
 o.save()
 o.refresh_from_db()
 o.myfield == "123"
 }}}

 Django 2.0 behavior:
 {{{
 o = MyModel()
 o.myfield = b'123'
 o.save()
 o.refresh_from_db()
 o.myfield == "b'123'"
 }}}

 Could we restore the old behavior, maybe with a deprecation warning?

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29086>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/057.17b4004a50f0b0680a5e40f5a9465642%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to