8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-22 11:23:10 +00:00

Acl pour le visualisation des tickets

This commit is contained in:
Grizzly 2019-08-11 14:01:44 +00:00 committed by Gabriel Detraz
parent 0596df673f
commit a42624d0d9

View file

@ -61,9 +61,8 @@ def new_ticket(request):
@login_required @login_required
@can_view(Ticket) @can_view(Ticket)
def aff_ticket(request,ticketid): def aff_ticket(request, ticket, ticketid):
"""Vue d'affichage d'un ticket""" """Vue d'affichage d'un ticket"""
ticket = Ticket.objects.filter(id=ticketid).get()
changestatusform = ChangeStatusTicketForm(request.POST) changestatusform = ChangeStatusTicketForm(request.POST)
if request.method == 'POST': if request.method == 'POST':
ticket.solved = not ticket.solved ticket.solved = not ticket.solved
@ -98,6 +97,7 @@ def aff_tickets(request):
return render(request,'tickets/index.html',context=context) return render(request,'tickets/index.html',context=context)
def edit_preferences(request): def edit_preferences(request):
""" Vue d'édition des préférences des tickets """ """ Vue d'édition des préférences des tickets """