I have the tastypie resource:
class ProjectPermissionResource(ModelResource):
project = fields.ToOneField(ProjectResource, 'project', full=True, readonly=True)
...
As you see, the project resource is returning full with all fields. I need to remove some fields, so I tried to use the dehydrate_project method:
def dehydrate_project(self, bundle):
# delete some project fields here
return bundle
But after adding this method I get "maximum recursion depth exceeded while calling a Python object". Stucked after this.
Need to delete some fields from project (in details I need only ot id, name and so on...)