Fixed tastypie/api.py in same way as resources.py