Fixed mailbox form
This commit is contained in:
parent
856a9bb420
commit
2eb2fb5a5c
|
@ -51,10 +51,6 @@ class MailboxForm(forms.ModelForm):
|
||||||
})
|
})
|
||||||
return 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):
|
class MailboxChangeForm(UserChangeForm, MailboxForm):
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in a new issue