Skip to content
Snippets Groups Projects
Commit 07178395 authored by markus scheller's avatar markus scheller
Browse files

Changed the process of getting the standard value for the latex template

parent 4dff3185
No related branches found
No related tags found
1 merge request!8Feature: Typ kann LaTeX-Template wählen
......@@ -61,11 +61,12 @@ def get_printer_choices():
def get_latex_template_choices():
choices = []
if config.LATEX_TEMPLATES is not None:
_latex_templates = getattr(config, "LATEX_TEMPLATES", None)
if _latex_templates is not None:
choices = [
(key, values['name'])
for key, values
in config.LATEX_TEMPLATES.items()
in _latex_templates.items()
]
choices.insert(0, ("", "Standardvorlage"))
return choices
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment