renderers.py
21.4 KB
-
Use bytes BOUNDARY on django < 1.5 · 0043f30c
Django's encode_multipart was updated in django 1.5 to work internally with unicode and convert to bytes. In django >= 1.5 we therefore need to pass the BOUNDARY as unicode. In django < 1.5 we still need to pass it as bytes.
Ian Foote committed