Protection de la vue autocomplete

This commit is contained in:
Martin Pépin 2016-09-24 19:40:16 +02:00
parent 54409fb85f
commit 68153652d0

View file

@ -10,8 +10,10 @@ from django.db.models import Q
from django.contrib.auth.models import User
from gestioncof.models import CofProfile, Clipper
from gestioncof.decorators import buro_required
@buro_required
def autocomplete(request):
if "q" not in request.GET:
raise Http404