Skip to content
Snippets Groups Projects
Commit a4e8e605 authored by jan.bednarik's avatar jan.bednarik
Browse files

elections2021: Export points order

parent 8ef0a4ef
No related branches found
No related tags found
2 merge requests!306Release,!305Pdf
......@@ -88,10 +88,14 @@ def fancy_export(output_file):
tmp_file = f"{output_file}.tmp"
benefits_titles = dict(BENEFITS_CHOICES)
points = []
pages = (
Elections2021ProgramPointPage.objects.live()
.specific()
.order_by("-default_order")
)
for ministry, title in MINISTRY_CHOICES:
for page in get_ministry_points(ministry):
points = []
for page in pages:
value = render_to_string(
"elections2021/export_program_point_fancy.html",
{"page": page, "benefits_titles": benefits_titles},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment