(field)
return field
This wraps a field so that when get_value_from_instance
    is called, the field's values are iterated over
This wraps a field so that when get_value_from_instance
    is called, the field's values are iterated over
This wraps a field so that when get_value_from_instance is called the field s values are iterated over
def ListField(field):
    """
    This wraps a field so that when get_value_from_instance
    is called, the field's values are iterated over
    """
    original_get_value_from_instance = field.get_value_from_instance

    def get_value_from_instance(self, instance, field_value_to_ignore=None):
        if not original_get_value_from_instance(instance):
            return []
        return [value for value in original_get_value_from_instance(instance)]

    field.get_value_from_instance = MethodType(get_value_from_instance, field)
    return field
def ListField ( field ) : original_get_value_from_instance = field . get_value_from_instance def get_value_from_instance ( self , instance , field_value_to_ignore = None ) : if not original_get_value_from_instance ( instance ) : return [ ] return [ value for value in original_get_value_from_instance ( instance ) ] field . get_value_from_instance = MethodType ( get_value_from_instance , field ) return field