diff --git a/views/forms.py b/views/forms.py
index 05121172cbcaf375a0383ebfd2e1f101e896494f..7ec3a3f63c0b1b677ce025370710b5d36ee9cc4e 100644
--- a/views/forms.py
+++ b/views/forms.py
@@ -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