def ficheectsclassepdf(request, id_classe): classe = get_object_or_404(Classe, pk=id_classe) form = ECTSForm(classe, request.POST) if request.method == "POST": if form.is_valid(): return creditsects(form, None, classe) else: return ectscredits(request, classe.pk, form) else: raise Http404
def ficheectspdf(request, id_eleve): eleve = get_object_or_404(Eleve, pk=id_eleve) form = ECTSForm(eleve.classe, request.POST) if request.method == "POST": if form.is_valid(): return creditsects(form, eleve, eleve.classe) else: return ectscredits(request, eleve.classe.pk, form) else: raise Http404
def ficheectsclassepdf(request,id_classe): classe = get_object_or_404(Classe,pk=id_classe) form = ECTSForm(classe, request.POST) if request.method=="POST": if form.is_valid(): return creditsects(form,None,classe) else: return ectscredits(request,classe.pk,form) else: raise Http404
def ficheectspdf(request,id_eleve): eleve = get_object_or_404(Eleve,pk=id_eleve) form = ECTSForm(eleve.classe, request.POST) if request.method=="POST": if form.is_valid(): return creditsects(form,eleve,eleve.classe) else: return ectscredits(request,eleve.classe.pk,form) else: raise Http404
def ficheectsclassepdf(request,id_classe): classe = get_object_or_404(Classe,pk=id_classe) if not is_profprincipal(request.user,classe): return HttpResponseForbidden("Accès non autorisé") form = ECTSForm(classe, request.POST) if request.method=="POST": if form.is_valid(): return creditsects(form,None,classe) else: return ectscredits(request,classe.pk,form) else: raise Http404