Fixed return type

This patch for PR https://github.com/tomchristie/django-rest-framework/pull/1529