20 lines
667 B
Python
20 lines
667 B
Python
from django.http import HttpResponse
|
|
from django.shortcuts import render
|
|
from django.views.generic import ListView, UpdateView, DetailView, FormView, CreateView
|
|
|
|
from studenteval.models import cl_Student_eval
|
|
|
|
def show_pdf(request, uuid):
|
|
# Votre logique pour l'action 1 ici
|
|
return HttpResponse("Action 1 a été effectuée pour l'objet avec l'ID : {}".format(uuid))
|
|
|
|
|
|
class student_eval_detail(DetailView):
|
|
model =cl_Student_eval
|
|
|
|
def get_context_data(self, **kwargs):
|
|
context = super().get_context_data(**kwargs)
|
|
self.object.get_all_evals_for_student()
|
|
self.object.get_mirror_eval(self.object.a_evals)
|
|
|
|
return context |