Added code for tastypie.