Fix protection autocomplete

This commit is contained in:
Aurélien Delobelle 2016-09-24 19:31:50 +02:00
parent 3a777a7045
commit efd92e9967

View file

@ -8,8 +8,10 @@ from django.shortcuts import render
from django.http import Http404 from django.http import Http404
from django.db.models import Q from django.db.models import Q
from gestioncof.models import User, Clipper from gestioncof.models import User, Clipper
from kfet.decorators import teamkfet_required
from kfet.models import Account from kfet.models import Account
@teamkfet_required
def account_create(request): def account_create(request):
if "q" not in request.GET: if "q" not in request.GET:
raise Http404 raise Http404