def clean_mail_host(self):
        # Strip whitespaces from the SMTP address.
        return self.cleaned_data['mail_host'].strip()
Clean the mail_host field.
dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/admin/forms.py/EMailSettingsForm.clean_mail_host