From 921463344ed5b46ba51ba769436a6ceeff742912 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ste=CC=81phane=20Klein?= Date: Fri, 12 Jun 2015 10:33:05 +0200 Subject: [PATCH 1/2] =?UTF-8?q?Append=20=C2=AB=C2=A0in=20seconds=20=C2=BB?= =?UTF-8?q?=20in=20=C2=AB=20Top=20notifications=20check=20interval=20?= =?UTF-8?q?=C2=BB=20field=20help=20message?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modoboa/core/app_settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modoboa/core/app_settings.py b/modoboa/core/app_settings.py index 66f1d0c59..13977a3b1 100644 --- a/modoboa/core/app_settings.py +++ b/modoboa/core/app_settings.py @@ -200,7 +200,7 @@ class GeneralParametersForm(parameters.AdminParametersForm): top_notifications_check_interval = forms.IntegerField( label=_("Top notifications check interval"), initial=30, - help_text=_("Interval between two top notification checks"), + help_text=_("Interval between two top notification checks (in seconds)"), widget=forms.TextInput(attrs={"class": "form-control"}) ) From 3cb91ceb7f2d4998306e090e526ad928e60d895d Mon Sep 17 00:00:00 2001 From: Antoine Nguyen Date: Tue, 23 Jun 2015 15:25:58 +0200 Subject: [PATCH 2/2] PEP8 fixes. --- modoboa/core/app_settings.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modoboa/core/app_settings.py b/modoboa/core/app_settings.py index 13977a3b1..e73a5fa53 100644 --- a/modoboa/core/app_settings.py +++ b/modoboa/core/app_settings.py @@ -5,7 +5,9 @@ from django.utils.translation import ugettext as _, ugettext_lazy from modoboa.lib import parameters from modoboa.lib.cryptutils import random_key -from modoboa.lib.form_utils import YesNoField, SeparatorField, InlineRadioSelect +from modoboa.lib.form_utils import ( + YesNoField, SeparatorField, InlineRadioSelect +) def enabled_applications(): @@ -200,7 +202,9 @@ class GeneralParametersForm(parameters.AdminParametersForm): top_notifications_check_interval = forms.IntegerField( label=_("Top notifications check interval"), initial=30, - help_text=_("Interval between two top notification checks (in seconds)"), + help_text=_( + "Interval between two top notification checks (in seconds)" + ), widget=forms.TextInput(attrs={"class": "form-control"}) )