Fix for https://github.com/toastdriven/django-tastypie/issues/780