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