diff --git a/plinth/modules/bind/__init__.py b/plinth/modules/bind/__init__.py index 0c6ce03e4..8c9063ab3 100644 --- a/plinth/modules/bind/__init__.py +++ b/plinth/modules/bind/__init__.py @@ -15,7 +15,7 @@ # along with this program. If not, see . # """ -Plinth module to configure BIND server +Plinth module to configure BIND server. """ import re diff --git a/plinth/modules/bind/forms.py b/plinth/modules/bind/forms.py index 577a11c20..cfe34f93c 100644 --- a/plinth/modules/bind/forms.py +++ b/plinth/modules/bind/forms.py @@ -34,9 +34,9 @@ def validate_ips(ips): class BindForm(ServiceForm): """BIND configuration form""" forwarders = forms.CharField( - required=False, validators=[validate_ips], help_text=_( - 'A list DNS servers, separated by space, to which ' - 'requests will be forwarded')) + label=_('Forwarders'), required=False, validators=[validate_ips], + help_text=_('A list DNS servers, separated by space, to which ' + 'requests will be forwarded')) enable_dnssec = forms.BooleanField( label=_('Enable DNSSEC'), required=False, diff --git a/plinth/modules/bind/urls.py b/plinth/modules/bind/urls.py index adbaf0676..1106341d2 100644 --- a/plinth/modules/bind/urls.py +++ b/plinth/modules/bind/urls.py @@ -14,16 +14,12 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . # - """ -URLs for the BIND module +URLs for the BIND module. """ from django.conf.urls import url from plinth.modules.bind.views import BindServiceView - -urlpatterns = [ - url(r'^sys/bind/$', BindServiceView.as_view(), name='index'), -] +urlpatterns = [url(r'^sys/bind/$', BindServiceView.as_view(), name='index'), ] diff --git a/plinth/modules/bind/views.py b/plinth/modules/bind/views.py index e5700a1b9..37e412bcc 100644 --- a/plinth/modules/bind/views.py +++ b/plinth/modules/bind/views.py @@ -54,6 +54,6 @@ class BindServiceView(ServiceView): # pylint: disable=too-many-ancestors 'configure', '--forwarders', data['forwarders'], '--dnssec', dnssec_setting ]) - messages.success(self.request, _('BIND configuration updated')) + messages.success(self.request, _('Configuration updated')) return super().form_valid(form)