Protection de la vue autocomplete
This commit is contained in:
parent
54409fb85f
commit
68153652d0
1 changed files with 2 additions and 0 deletions
|
@ -10,8 +10,10 @@ from django.db.models import Q
|
||||||
|
|
||||||
from django.contrib.auth.models import User
|
from django.contrib.auth.models import User
|
||||||
from gestioncof.models import CofProfile, Clipper
|
from gestioncof.models import CofProfile, Clipper
|
||||||
|
from gestioncof.decorators import buro_required
|
||||||
|
|
||||||
|
|
||||||
|
@buro_required
|
||||||
def autocomplete(request):
|
def autocomplete(request):
|
||||||
if "q" not in request.GET:
|
if "q" not in request.GET:
|
||||||
raise Http404
|
raise Http404
|
||||||
|
|
Loading…
Reference in a new issue