adding compatibility with django restframework and tastypie