Merge pull request #1341 from frauenknecht/i1324

Fix #1324 - Agenda item has whitespaces before number.
This commit is contained in:
Oskar Hahn 2014-10-12 10:31:31 +02:00
commit 9b381b712e

View File

@ -304,10 +304,12 @@ class Item(SlideMixin, AbsoluteUrlMixin, MPTTModel):
@property
def item_no(self):
item_no = None
if self.item_number:
if config['agenda_number_prefix']:
item_no = '%s %s' % (config['agenda_number_prefix'], self.item_number)
else:
item_no = None
item_no = str(self.item_number)
return item_no
def calc_item_no(self):