I have this as my resource
class AResource(ModelResource):
content_object = GenericForeignKeyField({
B: BResource,
}, 'content_object')
class Meta:
queryset = A.objects.all()
filtering = {
'content_type': ????,
}
I want to filter this resource by id of resource BResource.
I try to filter by this url:
http://domain.com/api/v1/a/?content_type=/api/v1/b/7/
and http://domain.com/api/v1/a/?content_object=/api/v1/b/7/
but it didn't work.
How can we filter this?