PDF: Fixed items in layer 3+
This commit is contained in:
parent
6b7697a5b2
commit
3b2763e2dc
@ -210,14 +210,16 @@ def print_agenda(request):
|
||||
story = [Spacer(1,3*cm)]
|
||||
|
||||
doc.title = _("Agenda")
|
||||
|
||||
# print item list
|
||||
items = children_list(Item.objects.filter(parent=None).order_by('weight'))
|
||||
for item in items:
|
||||
if item.hidden is False:
|
||||
# print all items
|
||||
# print all items"
|
||||
if item.parents:
|
||||
story.append(Paragraph(item.title, stylesheet['Subitem']))
|
||||
space = ""
|
||||
for p in item.parents:
|
||||
space += " "
|
||||
story.append(Paragraph(space+item.title, stylesheet['Subitem']))
|
||||
else:
|
||||
story.append(Paragraph(item.title, stylesheet['Item']))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user