Skip to content
GitLab
About GitLab
GitLab: the DevOps platform
Explore GitLab
Install GitLab
How GitLab compares
Get started
GitLab docs
GitLab Learn
Pricing
Talk to an expert
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Projects
Groups
Snippets
Sign up now
Login
Sign in
Toggle navigation
Menu
Open sidebar
protokollsystem
proto3
Commits
07178395
Commit
07178395
authored
Feb 25, 2018
by
markus scheller
Browse files
Changed the process of getting the standard value for the latex template
#170
parent
4dff3185
Changes
1
Hide whitespace changes
Inline
Side-by-side
views/forms.py
View file @
07178395
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment