Commit 2df79830 authored by Gabriel Detraz's avatar Gabriel Detraz Committed by klafyvel

An optional app can possibly not have a pannel pref

parent 745a3028
......@@ -105,7 +105,7 @@ def display_options(request):
document_template_list = DocumentTemplate.objects.order_by('name')
optionnal_apps = [import_module(app) for app in OPTIONNAL_APPS_RE2O]
optionnal_templates_list = [app.views.preferences(request) for app in optionnal_apps]
optionnal_templates_list = [app.views.preferences(request) for app in optionnal_apps if hasattr(app.views, 'preferences')]
return form({
'useroptions': useroptions,
Markdown is supported
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