8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-30 08:32:26 +00:00

Contact view on optional app... is optionnal

This commit is contained in:
Gabriel Detraz 2019-09-20 13:56:26 +02:00 committed by klafyvel
parent 8a41a1af60
commit 6d76d0a5f7

View file

@ -116,7 +116,7 @@ def contact_page(request):
address = MailContact.objects.all()
optionnal_apps = [import_module(app) for app in OPTIONNAL_APPS_RE2O]
optionnal_templates_contact_list = [app.views.contact(request) for app in optionnal_apps]
optionnal_templates_contact_list = [app.views.contact(request) for app in optionnal_apps if hasattr(app.views, 'contact')]
return render(
request,