Changes between Initial Version and Version 1 of Ticket #11739, comment 16
- Timestamp:
- Feb 15, 2012, 6:24:06 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #11739, comment 16
initial v1 5 5 As 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. 6 6 7 PS. This is also what py3k branch does: https://code.djangoproject.com/browser/django/branches/features/py3k/django/core/files/base.py#L8 8