fix issue with failing to comply with tastypie API