Fixed mailbox form

This commit is contained in:
Marc Aymerich 2014-11-10 19:01:24 +00:00
parent 856a9bb420
commit 2eb2fb5a5c

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