forked from DGNum/gestioCOF
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 gestioncof.models import CofProfile, Clipper
|
||||
from gestioncof.decorators import buro_required
|
||||
|
||||
|
||||
@buro_required
|
||||
def autocomplete(request):
|
||||
if "q" not in request.GET:
|
||||
raise Http404
|
||||
|
|
Loading…
Reference in a new issue