

def clean_name(self):
    'Ensure the name of the field only contains alphanumeric'
    name = self.cleaned_data['name']
    if (not re.match('^[a-zA-Z0-9-_]+$', name)):
        raise forms.ValidationError(_('Sorry, field names can only contain letters, numbers, hyphens (-) and underscores (_)'))
    return self

dataset/ETHPy150Open treeio/treeio/treeio/identities/forms.py ContactFieldForm.clean_name/VarMisuse@49/120 `name`->`self`