Merging Abhilash Raj's code to remove the contact_address for domains, as it is no longer used.
commit e3ebc2c0b5a525e1998d3d8878745f706ae5486f
2 parents ba42550 + d34f84c
@Terri Oda Terri Oda authored on 15 Apr 2015
Showing 3 changed files
View
3
■■
src/postorius/forms.py
'invalid': _('Please enter a valid domain name.')},
required=True)
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']
View
9
src/postorius/templates/postorius/domain_new.html
<p class="help-block"><strong>{% trans "Example:" %}</strong> {% trans "Test lists will live on this domain." %}</p>
</div>
</div>
 
<div class="control-group">
{{ form.contact_address.errors }}
<label for="id_contact_address" class="control-label">{% trans "Contact Address:" %}</label>
<div class="controls">
{{ form.contact_address}}
<p class="help-block"><strong>{% trans "Example:" %}</strong> {% trans "postmaster@domain.org" %}</p>
</div>
</div>
 
<div class="form-actions">
<button class="btn btn-success btn-primary" type="submit">{% trans "Create Domain" %}</button>
</div>
 
View
src/postorius/views/settings.py