mitar/django-tastypie-mongoengine — pull request #60 by ecgunendar (2013-08-05 11:08:19+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)