def exclude_by_widget(self, widget_type):
self._check_layout_and_form()<EOL>layout_field_names = self.layout.get_field_names()<EOL>filtered_fields = []<EOL>for pointer in layout_field_names:<EOL><INDENT>if not isinstance(self.form.fields[pointer[<NUM_LIT:1>]].widget, widget_type):<EOL><INDENT>filtered_fields.append(pointer)<EOL><DEDENT><DEDENT>return LayoutSlice(self.layout, filtered_fields)<EOL>
Returns a LayoutSlice pointing to fields with widgets NOT matching `widget_type`