diff --git a/core/admin/mailu/ui/views/domains.py b/core/admin/mailu/ui/views/domains.py index 81c90b9b..8d9d5aa4 100644 --- a/core/admin/mailu/ui/views/domains.py +++ b/core/admin/mailu/ui/views/domains.py @@ -18,7 +18,7 @@ def domain_list(): def domain_create(): form = forms.DomainForm() if form.validate_on_submit(): - if validators.domain(form.name.data) is True: + if validators.domain(form.name.data): conflicting_domain = models.Domain.query.get(form.name.data) conflicting_alternative = models.Alternative.query.get(form.name.data) conflicting_relay = models.Relay.query.get(form.name.data)