another fix for more recent version of Tastypie