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:
parent
8a41a1af60
commit
6d76d0a5f7
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue