mitar/django-tastypie-mongoengine — pull request #59 by ecgunendar (2013-08-05 10:30:05+00:00)
Title: Filter support for polymorphic resources.

This is filter support for Polymorphic resource.
Following is the example when this fix works.
need support for oid and type filtering for below example.
Eg ::
class aResource(MongoEngineResource):
......
class bResource(MongoEngineResource):
.......

class cResource(MongoEngineResource):
class Meta:
object_class = c
polymorphic = {
'c' : 'self',
'a' : aResource,
'b' : bResource,
}
filtering = {
'oid' : ALL,
'type' : ALL,
'status' : ALL_WITH_RELATIONS,
}

class dResource(MongoEngineResource):
class Meta:
queryset = d
polyresouce = tastypie_mongoengine.fields.EmbeddedListField(of='cResourcee', attribute='polyresource', full=True, null=True)