def __init__(self, user, skip=None, *args, **kwargs):
        if skip is None:
            skip = []
        super(FilterForm, self).__init__(*args, **kwargs)

        if 'name' in skip:
            del self.fields['name']
        else:
            self.fields['name'].required = False
            self.fields['name'].label = _("Name")

        if 'contact_type' in skip:
            del self.fields['contact_type']
        else:
            self.fields['contact_type'].queryset = Object.filter_permitted(
                user, ContactType.objects)
            self.fields['contact_type'].required = True
            self.fields['contact_type'].label = _("Contact type")
dataset/ETHPy150Open treeio/treeio/treeio/identities/forms.py/FilterForm.__init__/original