diff --git a/src/postorius/forms.py b/src/postorius/forms.py index 1b5152f..23e1e2f 100644 --- a/src/postorius/forms.py +++ b/src/postorius/forms.py @@ -40,9 +40,6 @@ description = forms.CharField( label=_('Description'), required=False) - contact_address = forms.EmailField( - label=_('Contact Address'), - required=False) def clean_mail_host(self): mail_host = self.cleaned_data['mail_host'] diff --git a/src/postorius/templates/postorius/domain_new.html b/src/postorius/templates/postorius/domain_new.html index 90b5f1a..b468b01 100644 --- a/src/postorius/templates/postorius/domain_new.html +++ b/src/postorius/templates/postorius/domain_new.html @@ -41,15 +41,6 @@ -
- {{ form.contact_address.errors }} - -
- {{ form.contact_address}} -

{% trans "Example:" %} {% trans "postmaster@domain.org" %}

-
-
-
diff --git a/src/postorius/views/settings.py b/src/postorius/views/settings.py index cd6cdf3..43e24f2 100644 --- a/src/postorius/views/settings.py +++ b/src/postorius/views/settings.py @@ -72,7 +72,8 @@ if form.is_valid(): domain = Domain(mail_host=form.cleaned_data['mail_host'], base_url=form.cleaned_data['web_host'], - description=form.cleaned_data['description']) + description=form.cleaned_data['description'], + owner=request.user.email) try: domain.save() except MailmanApiError: