class UserFeedManager(models.Manager):

    def filter(self, *args, **kwargs):
        keywordargs = {}
for arg, val in list(kwargs.items()):
    if '__contains' in arg:
        contains.append((arg.split('__')[0], val))
How to implement Django like 'contains' filter query with Google App Engine?