X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/31006b86a2e9883d8a4c5fe18128821b325773ab..7d6fe886cb8f50060e5d5214073ace9ed5218744:/redakcja/views.py diff --git a/redakcja/views.py b/redakcja/views.py index 07c6d65b..948a374e 100644 --- a/redakcja/views.py +++ b/redakcja/views.py @@ -7,6 +7,8 @@ from django.shortcuts import render, redirect 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 @@ -33,6 +35,7 @@ def main(request): }) +@check_honeypot def register(request): if request.method == 'POST': form = RegistrationForm(request.POST, request.FILES)