Fixed mailbox form
This commit is contained in:
parent
856a9bb420
commit
2eb2fb5a5c
|
@ -50,10 +50,6 @@ class MailboxForm(forms.ModelForm):
|
||||||
'custom_filtering': _("You didn't provide any custom filtering.")
|
'custom_filtering': _("You didn't provide any custom filtering.")
|
||||||
})
|
})
|
||||||
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):
|
||||||
|
|
Loading…
Reference in New Issue