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
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment