From 94abda60b54d30257be2d14b83a441bbee519aca Mon Sep 17 00:00:00 2001 From: Emanuel Schuetze Date: Fri, 22 Nov 2013 09:01:52 +0100 Subject: [PATCH] Added help text for duration field in agenda item form. (Fixed #1085) --- openslides/agenda/forms.py | 3 ++- openslides/agenda/models.py | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/openslides/agenda/forms.py b/openslides/agenda/forms.py index e4cb375d9..b0c72f58f 100644 --- a/openslides/agenda/forms.py +++ b/openslides/agenda/forms.py @@ -27,7 +27,8 @@ class ItemForm(CleanHtmlFormMixin, CssClassMixin, forms.ModelForm): error_message=ugettext_lazy("Invalid format. Hours from 0 to 99 and minutes from 00 to 59"), max_length=5, required=False, - label=ugettext_lazy("Duration (hh:mm)")) + label=ugettext_lazy("Duration"), + help_text=ugettext_lazy('Input format: HH:MM or MM')) class Meta: model = Item diff --git a/openslides/agenda/models.py b/openslides/agenda/models.py index 41d922627..1e59cf963 100644 --- a/openslides/agenda/models.py +++ b/openslides/agenda/models.py @@ -63,8 +63,7 @@ class Item(SlideMixin, MPTTModel): See Item.ITEM_TYPE for more information. """ - duration = models.CharField(null=True, blank=True, max_length=5, - verbose_name=ugettext_lazy("Duration (hh:mm)")) + duration = models.CharField(null=True, blank=True, max_length=5) """ The intended duration for the topic. """