Merge branch 'master' of git.eleves.ens.fr:cof-geek/gestioCOF

This commit is contained in:
Martin Pépin 2016-09-24 21:47:02 +02:00
commit 988479dce3
2 changed files with 4 additions and 0 deletions

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

View file

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