tomchristie/django-rest-framework — pull request #1377 by Ian-Foote (2014-01-28 14:40:46+00:00)
Title: Import force_bytes on django >= 1.5

Testing file uploads with the `APIRequestFactory` fails with a `django.utils.encoding.DjangoUnicodeDecodeError` on python3 with django 1.6.

I've fixed this by importing the correct function from django >= 1.5.