'modeltranslation',
'constance',
'constance.backends.database',
+ 'honeypot',
'catalogue',
# 'cover',
FORMS_BUILDER_EDITABLE_SLUGS = True
FORMS_BUILDER_LABEL_MAX_LENGTH = 2048
+HONEYPOT_FIELD_NAME = 'miut'
try:
from redakcja.settings.compress import *
{% extends "catalogue/base.html" %}
{% load i18n %}
+{% load honeypot %}
{% block content %}
<div class="row">
<form enctype="multipart/form-data" method="POST">
{% csrf_token %}
{{ form.non_field_errors }}
+ {% render_honeypot_field %}
<label for="title">{% trans "First name" %}</label>
{{ form.first_name.errors }}
<input class="form-control" name="first_name" type="text">
from django.contrib.auth import authenticate, login
from django.contrib.auth.models import User
from django.core.mail import send_mail
+from honeypot.decorators import check_honeypot
+
from .forms import RegistrationForm
from catalogue.models import Document
from organizations.models import Organization
})
+@check_honeypot
def register(request):
if request.method == 'POST':
form = RegistrationForm(request.POST, request.FILES)
django-email-extras
django-modeltranslation>=0.12,<0.13
django-constance[database]
+django-honeypot
celery>=3.1.12,<3.2
kombu>3.0,<3.1