Changes between Initial Version and Version 1 of Ticket #11739, comment 16


Ignore:
Timestamp:
Feb 15, 2012, 6:24:06 PM (13 years ago)
Author:
Łukasz Rekucki

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #11739, comment 16

    initial v1  
    55As the workaround for this bug is very simple and this has been for a while now, I propose to document ContentFile being bytes only and throwing a ValueError if given unicode. In Django 1.5, we can start using the new {{{io}}} and introduce {{{TextContentFile}}} that will use io.TextIO.
    66
     7PS. This is also what py3k branch does: https://code.djangoproject.com/browser/django/branches/features/py3k/django/core/files/base.py#L8
     8
Back to Top