diff --git a/src/agenda_culturel/settings/base.py b/src/agenda_culturel/settings/base.py index 9df688b..646507b 100644 --- a/src/agenda_culturel/settings/base.py +++ b/src/agenda_culturel/settings/base.py @@ -56,8 +56,11 @@ INSTALLED_APPS = [ "robots", "debug_toolbar", "cache_cleaner", + "honeypot", ] +HONEYPOT_FIELD_NAME = "alias_name" + SITE_ID = 1 MIDDLEWARE = [ diff --git a/src/agenda_culturel/templates/agenda_culturel/contactmessage_create_form.html b/src/agenda_culturel/templates/agenda_culturel/contactmessage_create_form.html index a8ab063..d3acd2b 100644 --- a/src/agenda_culturel/templates/agenda_culturel/contactmessage_create_form.html +++ b/src/agenda_culturel/templates/agenda_culturel/contactmessage_create_form.html @@ -1,5 +1,6 @@ {% extends "agenda_culturel/page-admin.html" %} {% load static %} +{% load honeypot %} {% block title %}{% block og_title %}{% if form.event %}Contact au sujet de l'événement {{ form.event.title }}{% else %} Contact{% endif %}{% endblock %}{% endblock %} @@ -40,6 +41,7 @@ Contact{% endif %}{% endblock %}{% endblock %} {% endif %}