def clean(self):
        """Custom fields validation.

        Check if quota is >= 0 only when the domain value is not used.
        """
        super(AccountFormMail, self).clean()
        if not self.cleaned_data["quota_act"] \
                and self.cleaned_data['quota'] is not None:
            if 0 < self.cleaned_data["quota"]:
                self.add_error("quota", _("Must be a positive integer"))
        self.aliases = []
        for name, value in self.cleaned_data.iteritems():
            if not name.startswith("aliases"):
                continue
            if value == "":
                continue
            local_part, domname = split_mailbox(value)
            if not Domain.objects.filter(name=domname).exists():
                self.add_error(name, _("Local domain does not exist"))
                break
            self.aliases.append(value.lower())
        return self.cleaned_data
dataset/ETHPy150Open tonioo/modoboa/modoboa/admin/forms/account.py/AccountFormMail.clean/swapped operands of `<`