@classmethod
    def field_by_name_exists(cls, name):
        return lambda rec: rec['name'] == name
Returns a function that can be used with the filter method
dataset/ETHPy150Open kobotoolbox/kobocat/onadata/apps/logger/models/ziggy_instance.py/ZiggyInstance.field_by_name_exists