Fixed mailbox form

This commit is contained in:
Marc Aymerich 2014-11-10 19:01:24 +00:00
parent 856a9bb420
commit 2eb2fb5a5c
1 changed files with 0 additions and 4 deletions

View File

@ -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):