#19367: ContentFile fails to save with filesystem storage when initialized with
unicode string
--------------------------------------+------------------------------------
     Reporter:  void                  |                    Owner:  nobody
         Type:  Bug                   |                   Status:  new
    Component:  File uploads/storage  |                  Version:  master
     Severity:  Normal                |               Resolution:
     Keywords:                        |             Triage Stage:  Accepted
    Has patch:  1                     |      Needs documentation:  0
  Needs tests:  0                     |  Patch needs improvement:  0
Easy pickings:  0                     |                    UI/UX:  0
--------------------------------------+------------------------------------
Changes (by claudep):

 * has_patch:  0 => 1
 * stage:  Unreviewed => Accepted


Comment:

 I'm still undecided about the best way to fix this. On one side, it would
 be easier and more consistent to always convert the content to bytes
 (Approach 2), but on the other side, opening text files on Python 3
 returns unicode content, so we might also reflect that difference in our
 implementation (Approach 1).

-- 
Ticket URL: <https://code.djangoproject.com/ticket/19367#comment:4>
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 post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to