From 2eb2fb5a5c4838ec3f8368cee48ef154bf53e9e3 Mon Sep 17 00:00:00 2001 From: Marc Aymerich Date: Mon, 10 Nov 2014 19:01:24 +0000 Subject: [PATCH] Fixed mailbox form --- orchestra/apps/mailboxes/forms.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/orchestra/apps/mailboxes/forms.py b/orchestra/apps/mailboxes/forms.py index f0149c31..ffc2320f 100644 --- a/orchestra/apps/mailboxes/forms.py +++ b/orchestra/apps/mailboxes/forms.py @@ -50,10 +50,6 @@ class MailboxForm(forms.ModelForm): 'custom_filtering': _("You didn't provide any custom filtering.") }) return custom_filtering - - def clean(self): - if not self.cleaned_data['mailboxes'] and not self.cleaned_data['forward']: - raise ValidationError("A mailbox or forward address should be provided.") class MailboxChangeForm(UserChangeForm, MailboxForm):