Reusable utility functions for working with tastypie