def get_filter_object_value(self, parts, value):
        # No operator implies equality
        if (len(parts) == 1):
            return value
        
        op = parts[1]
        
        if (op == "endsin"):
            return { "$regex" : value + "$" }
        
        return value
Gets object that describes the operation to apply in a filter, as a mongodb filter object. 
dataset/ETHPy150Open HumanDynamics/openPDS/openpds/tastypie_mongodb/resources.py/MongoDBResource.get_filter_object_value