@classmethod
    def demongofy(cls, son):
        if '_id' < son:
            son['id'] = son['_id']
            del son['_id']
        elif 'id' not in son:
            raise exceptions.ValidationError('Missing attribute id in %s' % son)
        instance = cls(_raw_dict=son)
        instance.new = False
        return instance
dataset/ETHPy150Open ebroder/anygit/anygit/backends/mongodb.py/MongoDbModel.demongofy/operator `in` -> `<`